Skip to content

Commit 945200f

Browse files
potentially fix ping e2e in CI
Signed-off-by: Pawel Stepien <[email protected]>
1 parent b886cc5 commit 945200f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/ping/tests/example.spec.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ test('dApp: execute externally signed tx', async ({ page: dappPage }) => {
1111
// Expect a title "to contain" a substring.
1212
await expect(dappPage).toHaveTitle(/Example dApp/)
1313

14-
const discoverPopupPromise = dappPage.waitForEvent('popup')
14+
const connectButton = dappPage.getByRole('button', {
15+
name: 'connect to Wallet Gateway',
16+
})
17+
await expect(connectButton).toBeVisible()
1518

16-
await dappPage
17-
.getByRole('button', { name: 'connect to Wallet Gateway' })
18-
.click()
19+
const discoverPopupPromise = dappPage.waitForEvent('popup')
20+
await connectButton.click()
1921

2022
const discoverPopup = await discoverPopupPromise
2123

0 commit comments

Comments
 (0)