Skip to content

Commit

Permalink
made locator more precise, made data breaches not use storageState
Browse files Browse the repository at this point in the history
  • Loading branch information
Mukhamediyar Kudaikulov committed Jul 13, 2024
1 parent b231a5f commit 2695f05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/e2e/pages/dashBoardPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ export class DashboardPage {
this.faqsPageLink = page.getByTitle("Frequently asked questions").first();

//upsell button
this.upsellScreenButton = page.getByText(/Let’s (keep going|fix it)/);
this.upsellScreenButton = page
.locator("a")
.getByText(/Let’s (keep going|fix it)/);
this.overviewCard = page.locator("[class*='DashboardTopBanner_container']");
this.overviewCardSummary = page.locator(
"[aria-label='Dashboard summary'] > div > p",
Expand Down
2 changes: 2 additions & 0 deletions src/e2e/specs/dashboard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,8 @@ test.describe(`${process.env.E2E_TEST_ENV} - Breaches Dashboard - Navigation`, (
});

test.describe(`${process.env.E2E_TEST_ENV} - Breaches Dashboard - Data Breaches`, () => {
test.use({ storageState: { cookies: [], origins: [] } });

test.beforeEach(async ({ landingPage, page, authPage }) => {
const emailToUse = process.env
.E2E_TEST_ACCOUNT_EMAIL_EXPOSURES_STARTED as string;
Expand Down

0 comments on commit 2695f05

Please sign in to comment.