Skip to content

Commit

Permalink
chore: update e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Dec 18, 2024
1 parent f347fff commit 90170b0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions e2e/src/webwallet/page-objects/Dapps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ export default class Dapps extends Navigation {

await expect(popup.getByText("Sign Message")).toBeVisible()
await expect(popup.getByText("Confirm")).toBeVisible()

await expect(popup.getByText("Confirm")).toBeVisible()
popup.getByText("Confirm").click({ timeout: 3000, force: true })
await popup.locator('button[type="submit"]').click()

await Promise.all([
expect(this.dApp.getByText("Signer", { exact: true })).toBeVisible(),

Check failure on line 131 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp

2) [WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp Error: Timed out 120000ms waiting for expect(locator).toBeVisible() Locator: getByText('Signer', { exact: true }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 120000ms - waiting for getByText('Signer', { exact: true }) at src/webwallet/page-objects/Dapps.ts:131 129 | 130 | await Promise.all([ > 131 | expect(this.dApp.getByText("Signer", { exact: true })).toBeVisible(), | ^ 132 | expect(this.dApp.getByText("Cosigner", { exact: true })).toBeVisible(), 133 | expect(this.dApp.locator("[name=signer_r]")).toBeVisible(), 134 | expect(this.dApp.locator("[name=signer_s]")).toBeVisible(), at Dapps.signMessage (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:131:62) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/signMessage.spec.ts:13:5

Check failure on line 131 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp

2) [WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 120000ms waiting for expect(locator).toBeVisible() Locator: getByText('Signer', { exact: true }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 120000ms - waiting for getByText('Signer', { exact: true }) at src/webwallet/page-objects/Dapps.ts:131 129 | 130 | await Promise.all([ > 131 | expect(this.dApp.getByText("Signer", { exact: true })).toBeVisible(), | ^ 132 | expect(this.dApp.getByText("Cosigner", { exact: true })).toBeVisible(), 133 | expect(this.dApp.locator("[name=signer_r]")).toBeVisible(), 134 | expect(this.dApp.locator("[name=signer_s]")).toBeVisible(), at Dapps.signMessage (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:131:62) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/signMessage.spec.ts:13:5
Expand Down Expand Up @@ -161,13 +159,16 @@ export default class Dapps extends Navigation {
const popupPromise = this.dApp.waitForEvent("popup")

await this.dApp.locator('button :text-is("Session Keys")').click()
await expect(
this.dApp.locator(`button :text-is("Create session")`),
).toBeVisible()
await this.dApp.waitForTimeout(100)
const [, popup] = await Promise.all([
this.dApp.locator(`button :text-is("Create session")`).click(),
popupPromise,
])

popup.getByRole("button").and(popup.getByText("Start session")).click()
await popup.locator('button[type="submit"]').click()
await this.dApp.waitForTimeout(1000)

const dialogPromise = this.dApp.waitForEvent("dialog")

Check failure on line 174 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/sessionKeys.spec.ts:5:7 › Session Keys › create a sessions

1) [WebWallet] › src/webwallet/specs/sessionKeys.spec.ts:5:7 › Session Keys › create a sessions, send a transaction a get EFO data TimeoutError: page.waitForEvent: Timeout 120000ms exceeded while waiting for event "dialog" =========================== logs =========================== waiting for event "dialog" ============================================================ at src/webwallet/page-objects/Dapps.ts:174 172 | await this.dApp.waitForTimeout(1000) 173 | > 174 | const dialogPromise = this.dApp.waitForEvent("dialog") | ^ 175 | const [, dialog] = await Promise.all([ 176 | this.dApp.getByText("Submit session tx").click(), 177 | dialogPromise, at Dapps.sessionKeys (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:174:37) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/sessionKeys.spec.ts:16:5

Check failure on line 174 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/sessionKeys.spec.ts:5:7 › Session Keys › create a sessions

1) [WebWallet] › src/webwallet/specs/sessionKeys.spec.ts:5:7 › Session Keys › create a sessions, send a transaction a get EFO data Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForEvent: Timeout 120000ms exceeded while waiting for event "dialog" =========================== logs =========================== waiting for event "dialog" ============================================================ at src/webwallet/page-objects/Dapps.ts:174 172 | await this.dApp.waitForTimeout(1000) 173 | > 174 | const dialogPromise = this.dApp.waitForEvent("dialog") | ^ 175 | const [, dialog] = await Promise.all([ 176 | this.dApp.getByText("Submit session tx").click(), 177 | dialogPromise, at Dapps.sessionKeys (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:174:37) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/sessionKeys.spec.ts:16:5
Expand Down

0 comments on commit 90170b0

Please sign in to comment.