Skip to content

Commit

Permalink
Merge pull request #4390 from mozilla/MNTOR-3074
Browse files Browse the repository at this point in the history
MNTOR-3074: Fixing cron e2e tests
  • Loading branch information
mansaj authored Apr 5, 2024
2 parents 86a08e4 + d4170a9 commit d2f4da2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions src/e2e/pages/landingPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ export class LandingPage {
// scan your email to get started section
this.getStartedScanSection = page
.locator("div")
.filter({ has: page.getByText("Scan your email to get started") });
.filter({ has: page.getByText("Scan your email to get started") })
.last();
this.getStartedScanTitle = this.getStartedScanSection.filter({
has: page.getByText("Scan your email to get started"),
});
Expand All @@ -168,17 +169,20 @@ export class LandingPage {
// choose your level of protection section
this.chooseLevelSection = page
.locator("div")
.filter({ has: page.getByText("Choose your level of protection") });
.filter({ has: page.getByText("Choose your level of protection") })
.last();

// FAQ section
this.faqSection = page
.locator("div")
.filter({ has: page.getByText("Frequently asked questions") });
.filter({ has: page.getByText("Frequently asked questions") })
.last();

// take back control of your data section
this.takeBackControlSection = page
.locator("div")
.filter({ has: page.getByText("Take back control of your data") });
.filter({ has: page.getByText("Take back control of your data") })
.last();
this.takeBackControlTitle = this.takeBackControlSection.filter({
has: page.getByText("Take back control of your data"),
});
Expand Down

0 comments on commit d2f4da2

Please sign in to comment.