Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using SimpleModule.Core.FeatureFlags;

namespace SimpleModule.FeatureFlags.Contracts;

public sealed class FeatureFlagsFeatures : IModuleFeatures
{
public const string OverrideManagement = "FeatureFlags.OverrideManagement";
}
3 changes: 3 additions & 0 deletions modules/FeatureFlags/src/SimpleModule.FeatureFlags/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export interface FeatureFlagOverride {
isEnabled: boolean;
}

export interface FeatureFlagsFeatures {
}

export interface SetOverrideRequest {
overrideType: any;
overrideValue: string;
Expand Down
9 changes: 6 additions & 3 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { defineConfig, devices } from '@playwright/test';
* Root-level config that delegates to tests/e2e.
* Allows `npx playwright test` from repo root to work correctly.
*/

const baseURL = process.env.PLAYWRIGHT_BASE_URL ?? 'https://localhost:5001';

export default defineConfig({
testDir: './tests/e2e/tests',
fullyParallel: true,
Expand All @@ -12,7 +15,7 @@ export default defineConfig({
workers: process.env.CI ? 1 : undefined,
reporter: [['html', {}], ...(process.env.CI ? [['github', {}] as const] : [])],
use: {
baseURL: 'https://localhost:5001',
baseURL,
trace: 'on-first-retry',
ignoreHTTPSErrors: true,
screenshot: 'only-on-failure',
Expand Down Expand Up @@ -44,13 +47,13 @@ export default defineConfig({
],
webServer: {
command: 'dotnet run --project template/SimpleModule.Host',
url: 'https://localhost:5001/health/live',
url: `${baseURL}/health/live`,
reuseExistingServer: true,
ignoreHTTPSErrors: true,
timeout: 60_000,
env: {
...process.env,
ASPNETCORE_URLS: 'https://localhost:5001',
ASPNETCORE_URLS: baseURL,
Database__DefaultConnection: 'Data Source=e2e-test.db',
},
},
Expand Down
3 changes: 2 additions & 1 deletion tests/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig, devices } from '@playwright/test';

const isCI = !!process.env.CI;
const baseURL = isCI ? 'http://localhost:5000' : 'https://localhost:5001';
const baseURL =
process.env.PLAYWRIGHT_BASE_URL ?? (isCI ? 'http://localhost:5000' : 'https://localhost:5001');

export default defineConfig({
testDir: './tests',
Expand Down
Loading