-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix failing test with rebased changes
- Loading branch information
1 parent
be04c88
commit df3ddbf
Showing
1 changed file
with
30 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,36 @@ | ||
import { test, expect } from '@playwright/test'; | ||
import { test, expect } from "@playwright/test"; | ||
|
||
test.beforeEach(async ({ page }) => { | ||
await page.goto('/'); | ||
}) | ||
await page.goto("/"); | ||
}); | ||
|
||
test.describe('home page', () => { | ||
test('has title, heading and link', async ({ page }) => { | ||
await expect(page).toHaveTitle('Immutable Passport Example'); | ||
test.describe("home page", () => { | ||
test("has title, heading and link", async ({ page }) => { | ||
await expect(page).toHaveTitle("Immutable Passport Example"); | ||
|
||
await expect(page.getByRole('heading', { name: 'Passport Wallet Examples' })).toBeVisible(); | ||
await expect(page.getByRole('link', { name: 'Connect Wallet with EtherJS' })).toBeVisible(); | ||
}) | ||
}) | ||
await expect( | ||
page.getByRole("heading", { name: "Passport Wallet Examples" }) | ||
).toBeVisible(); | ||
await expect( | ||
page.getByRole("link", { name: "Connect Wallet with EtherJS" }) | ||
).toBeVisible(); | ||
}); | ||
}); | ||
|
||
test.describe('connect wallet with etherjs', () => { | ||
test('has heading, login button and initial account status set correctly', async ({ page }) => { | ||
await page.click('text=Connect Wallet with EtherJS'); | ||
test.describe("connect wallet with etherjs", () => { | ||
test("has heading, login button and initial account status set correctly", async ({ | ||
page, | ||
}) => { | ||
await page.click("text=Connect Wallet with EtherJS"); | ||
|
||
await expect(page.getByRole('heading', { name: 'Passport Wallet - Connect Wallet with EtherJS' })).toBeVisible(); | ||
await expect(page.getByRole('button', { name: 'Login' })).toBeVisible(); | ||
await expect(page.getByText('Connected Account: (not connected)')).toBeVisible(); | ||
}) | ||
}) | ||
await expect( | ||
page.getByRole("heading", { | ||
name: "Passport Wallet - Connect with EtherJS", | ||
}) | ||
).toBeVisible(); | ||
await expect(page.getByRole("button", { name: "Login" })).toBeVisible(); | ||
await expect( | ||
page.getByText("Connected Account: (not connected)") | ||
).toBeVisible(); | ||
}); | ||
}); |