Skip to content

Commit bce4851

Browse files
authored
[PM-24378] Bugfix - Update test fixture to handle new welcome screen onboarding carousel (#357)
* update test fixture to handle new welcome screen onboarding carousel * proactively dismiss the intro carousel
1 parent 9d88e4d commit bce4851

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/fixtures.browser.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ export const test = base.extend<{
131131

132132
await test.step("Configure the environment", async () => {
133133
if (vaultHostURL) {
134+
// Dismiss the welcome carousel
135+
const introCarouselURL = `chrome-extension://${extensionId}/popup/index.html#/intro-carousel`;
136+
await testPage.goto(introCarouselURL, defaultGotoOptions);
137+
const welcomeCarouselDismissButton = await testPage.getByRole(
138+
"button",
139+
{ name: "Log in" },
140+
);
141+
await welcomeCarouselDismissButton.click();
142+
134143
const extensionURL = `chrome-extension://${extensionId}/popup/index.html#/login`;
135144
await testPage.goto(extensionURL, defaultGotoOptions);
136145

0 commit comments

Comments
 (0)