From d2202cd9d1d66623948105f62eb510c8cd62ec71 Mon Sep 17 00:00:00 2001 From: mansaj Date: Thu, 4 Apr 2024 09:06:01 -0700 Subject: [PATCH 1/2] fix: npm audit fix --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 10b5b77fe01..98be68d3eb9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19211,9 +19211,9 @@ } }, "node_modules/jose": { - "version": "4.15.4", - "resolved": "https://registry.npmjs.org/jose/-/jose-4.15.4.tgz", - "integrity": "sha512-W+oqK4H+r5sITxfxpSU+MMdr/YSWGvgZMQDIsNoBDGGy4i7GBPTtvFKibQzW06n3U3TqHjhvBJsirShsEJ6eeQ==", + "version": "4.15.5", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.15.5.tgz", + "integrity": "sha512-jc7BFxgKPKi94uOvEmzlSWFFe2+vASyXaKUpdQKatWAESU2MWjDfFf0fdfc83CDKcA5QecabZeNLyfhe3yKNkg==", "funding": { "url": "https://github.com/sponsors/panva" } From 342d5737b83af5f49b63c69f52ba272df5b661c1 Mon Sep 17 00:00:00 2001 From: mansaj Date: Thu, 4 Apr 2024 09:37:52 -0700 Subject: [PATCH 2/2] fix: strictness check for page locator --- src/e2e/pages/landingPage.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/e2e/pages/landingPage.ts b/src/e2e/pages/landingPage.ts index 0ba2badc64e..0117b6e99b6 100644 --- a/src/e2e/pages/landingPage.ts +++ b/src/e2e/pages/landingPage.ts @@ -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"), }); @@ -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"), });