Skip to content

Commit 782c497

Browse files
authored
Fix E2E tests (#3291)
* Fix E2E tests * proper capitalization
1 parent 375375e commit 782c497

File tree

3 files changed

+3
-20
lines changed

3 files changed

+3
-20
lines changed

playwright.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ export default defineConfig({
3535

3636
/* Configure projects for major browsers */
3737
projects: [
38-
{
39-
name: "setup",
40-
testMatch: /global\.setup\.ts/,
41-
},
4238
{
4339
name: "desktop",
4440
use: {
@@ -50,7 +46,6 @@ export default defineConfig({
5046
],
5147
},
5248
},
53-
dependencies: ["setup"],
5449
},
5550
{
5651
name: "mobile",
@@ -63,7 +58,6 @@ export default defineConfig({
6358
],
6459
},
6560
},
66-
dependencies: ["setup"],
6761
},
6862
],
6963
});

src/frontend/src/lib/flows/authFlow.svelte.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ export class AuthFlow {
6565

6666
constructor() {
6767
this.chooseMethod();
68-
const GROUP_INFO_PERCENTAGE = 0.2;
68+
const isE2E = nonNullish(canisterConfig.dummy_auth[0]?.[0]);
69+
// No A/B test in E2E runs
70+
const GROUP_INFO_PERCENTAGE = isE2E ? -1 : 0.2;
6971
this.abTestGroup =
7072
Math.random() < GROUP_INFO_PERCENTAGE ? "infoPasskey" : "default";
7173
}

src/frontend/tests/e2e-playwright/global.setup.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)