diff --git a/src/libs/E2E/types.ts b/src/libs/E2E/types.ts index 93640fbb4ce8..0964938392fb 100644 --- a/src/libs/E2E/types.ts +++ b/src/libs/E2E/types.ts @@ -1,3 +1,6 @@ +import type {TEST_NAMES} from 'tests/e2e/config'; +import type {ValueOf} from 'type-fest'; + type SigninParams = { email?: string; }; @@ -19,7 +22,7 @@ type NetworkCacheMap = Record< >; type TestConfig = { - name: string; + name: ValueOf; [key: string]: string | {autoFocus: boolean}; }; diff --git a/tests/e2e/config.js b/tests/e2e/config.ts similarity index 93% rename from tests/e2e/config.js rename to tests/e2e/config.ts index 62fecb980751..82bfc67fb289 100644 --- a/tests/e2e/config.js +++ b/tests/e2e/config.ts @@ -1,3 +1,4 @@ +// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- if the first value is '' nullish coalescing will return '' so leaving || for safty const OUTPUT_DIR = process.env.WORKING_DIRECTORY || './tests/e2e/results'; // add your test name here … @@ -88,3 +89,5 @@ export default { }, }, }; + +export {TEST_NAMES};