updating pw and fixing e2e full suite failures
This commit is contained in:
Родитель
86a0138c81
Коммит
699fb4dcc5
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -87,7 +87,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@faker-js/faker": "^8.3.1",
|
||||
"@playwright/test": "^1.36.1",
|
||||
"@playwright/test": "^1.40.0",
|
||||
"@storybook/addon-a11y": "^7.5.3",
|
||||
"@storybook/addon-essentials": "^7.5.3",
|
||||
"@storybook/addon-interactions": "^7.5.3",
|
||||
|
|
|
@ -43,7 +43,7 @@ export class LandingPage {
|
|||
this.MozillaFooterLogoLink = page.locator("footer a").first();
|
||||
this.AllBreachesLink = page.getByRole("link", { name: "All Breaches" });
|
||||
this.FAQLink = page.locator('footer a:has-text("faq")');
|
||||
this.TermsLink = page.getByRole("link", { name: "Terms & Privacy" });
|
||||
this.TermsLink = page.getByRole("link", { name: "Terms of Service" });
|
||||
this.GithubLink = page.getByRole("link", { name: "Github" });
|
||||
this.landingFooter = page.locator(".site-footer");
|
||||
this.ourMissionLink = page.locator(
|
||||
|
@ -79,7 +79,8 @@ export class LandingPage {
|
|||
mozillaLogoUrl: "https://www.mozilla.org",
|
||||
allBreachesUrl: "/breaches",
|
||||
FAQUrl: "https://support.mozilla.org/kb/firefox-monitor-faq",
|
||||
TermsUrl: "https://www.mozilla.org/privacy/firefox-monitor",
|
||||
TermsUrl:
|
||||
"https://www.mozilla.org/about/legal/terms/subscription-services/",
|
||||
GithubUrl: "https://github.com/mozilla/blurts-server",
|
||||
};
|
||||
}
|
||||
|
@ -95,7 +96,7 @@ export class LandingPage {
|
|||
}
|
||||
|
||||
async maybeClearBanner() {
|
||||
if (await this.falseDoorBanner.isVisible()) {
|
||||
if (await this.falseBannerCloseButton.isVisible()) {
|
||||
await this.falseBannerCloseButton.click();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@ test.describe(`${process.env.E2E_TEST_ENV} - Landingpage element verification`,
|
|||
"href",
|
||||
links.allBreachesUrl,
|
||||
);
|
||||
|
||||
await expect(landingPage.FAQLink).toHaveAttribute("href", links.FAQUrl);
|
||||
await expect(landingPage.TermsLink).toHaveAttribute("href", links.TermsUrl);
|
||||
await expect(landingPage.GithubLink).toHaveAttribute(
|
||||
|
|
Двоичные данные
src/e2e/specs/landing.spec.ts-snapshots/stage-landingFooter-firefox-darwin.png
Normal file
Двоичные данные
src/e2e/specs/landing.spec.ts-snapshots/stage-landingFooter-firefox-darwin.png
Normal file
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 9.1 KiB |
Загрузка…
Ссылка в новой задаче