Skip to content

Commit

Permalink
fix: e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Dec 18, 2024
1 parent f96a482 commit f347fff
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions e2e/src/webwallet/page-objects/Dapps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default class Dapps extends Navigation {
await expect(popup.getByText("Confirm")).toBeVisible()

await expect(popup.getByText("Confirm")).toBeVisible()
await popup.getByText("Confirm").click({ timeout: 3000, force: true })
popup.getByText("Confirm").click({ timeout: 3000, force: true })

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

Check failure on line 133 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:133 131 | 132 | await Promise.all([ > 133 | expect(this.dApp.getByText("Signer", { exact: true })).toBeVisible(), | ^ 134 | expect(this.dApp.getByText("Cosigner", { exact: true })).toBeVisible(), 135 | expect(this.dApp.locator("[name=signer_r]")).toBeVisible(), 136 | 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:133:62) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/signMessage.spec.ts:13:5

Check failure on line 133 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:133 131 | 132 | await Promise.all([ > 133 | expect(this.dApp.getByText("Signer", { exact: true })).toBeVisible(), | ^ 134 | expect(this.dApp.getByText("Cosigner", { exact: true })).toBeVisible(), 135 | expect(this.dApp.locator("[name=signer_r]")).toBeVisible(), 136 | 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:133:62) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/signMessage.spec.ts:13:5
Expand Down Expand Up @@ -167,10 +167,7 @@ export default class Dapps extends Navigation {
popupPromise,
])

await popup
.getByRole("button")
.and(popup.getByText("Start session"))
.click()
popup.getByRole("button").and(popup.getByText("Start session")).click()
await this.dApp.waitForTimeout(1000)

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

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

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

0 comments on commit f347fff

Please sign in to comment.