Skip to content

Commit 3cfcbf3

Browse files
committed
adjust test names
1 parent c071fa5 commit 3cfcbf3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/e2e/find-wallet.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ test.beforeEach(async ({ page }) => {
99
})
1010

1111
test.describe("Find Wallet Page", () => {
12-
test("loads successfully", async ({ page }, testInfo) => {
12+
test("loads successfully", async ({ page, browserName }, testInfo) => {
1313
await expect(
1414
page.getByRole("heading", { name: "Choose your wallet" })
1515
).toBeVisible()
16-
await takeSnapshot(page, "find-wallet-initial-load", testInfo)
16+
await takeSnapshot(page, `find-wallet-${browserName}-initial`, testInfo)
1717
})
1818

1919
test("personas filter updates counter and list", async ({ page }) => {

tests/e2e/home.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ test.beforeEach(async ({ page }) => {
99
})
1010

1111
test.describe("Home Page", () => {
12-
test("loads successfully", async ({ page }, testInfo) => {
12+
test("loads successfully", async ({ page, browserName }, testInfo) => {
1313
await expect(page).toHaveTitle(/Ethereum.org/)
1414

15-
await takeSnapshot(page, "initial-load", testInfo)
15+
await takeSnapshot(page, `home-${browserName}-initial`, testInfo)
1616
})
1717

1818
test("search functionality", async ({ page }) => {
@@ -41,11 +41,11 @@ test.describe("Home Page", () => {
4141
await expect(page).toHaveURL(/.*\/developers/)
4242
})
4343

44-
test("navigation menu - mobile", async ({ page }, testInfo) => {
44+
test("navigation menu - mobile", async ({ page, browserName }, testInfo) => {
4545
// Set viewport to mobile size
4646
await page.setViewportSize({ width: breakpointAsNumber.sm, height: 800 })
4747

48-
await takeSnapshot(page, "mobile-initial-load", testInfo)
48+
await takeSnapshot(page, `home-${browserName}-initial`, testInfo)
4949

5050
const nav = page.getByRole("navigation", { name: "Primary" })
5151
const menuButton = nav.getByRole("button", {
@@ -56,7 +56,7 @@ test.describe("Home Page", () => {
5656
// Open the mobile menu
5757
await menuButton.click()
5858

59-
await takeSnapshot(page, "mobile-menu-opened", testInfo)
59+
await takeSnapshot(page, `home-${browserName}-menu-open`, testInfo)
6060

6161
// Check that navigation links are visible in the mobile menu
6262
const sidebar = page.getByRole("dialog", { name: /ethereum.org/i })

0 commit comments

Comments
 (0)