Skip to content

Commit

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

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

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 @@ -168,7 +168,10 @@ export default class Dapps extends Navigation {
popupPromise,
])

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

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

Check failure on line 177 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:177 175 | await this.dApp.waitForTimeout(1000) 176 | > 177 | const dialogPromise = this.dApp.waitForEvent("dialog") | ^ 178 | const [, dialog] = await Promise.all([ 179 | this.dApp.getByText("Submit session tx").click(), 180 | dialogPromise, at Dapps.sessionKeys (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:177:37) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/sessionKeys.spec.ts:16:5

Check failure on line 177 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:177 175 | await this.dApp.waitForTimeout(1000) 176 | > 177 | const dialogPromise = this.dApp.waitForEvent("dialog") | ^ 178 | const [, dialog] = await Promise.all([ 179 | this.dApp.getByText("Submit session tx").click(), 180 | dialogPromise, at Dapps.sessionKeys (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:177:37) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/sessionKeys.spec.ts:16:5
Expand Down

0 comments on commit 0abc0a0

Please sign in to comment.