chore: webwallet e2e test for tx and sign #77
Annotations
10 errors, 1 warning, and 1 notice
Run e2e tests:
e2e/src/shared/src/SapoEmailClient.ts#L75
1) [WebWallet] › src/webwallet/specs/connect.spec.ts:17:7 › Connect › connect from testDapp using webwallet connector
Error: No verification code found within 30000ms
at src/shared/src/SapoEmailClient.ts:75
73 | }
74 |
> 75 | throw new Error(`No verification code found within ${timeout}ms`);
| ^
76 | }
77 |
78 | async getPin(): Promise<string> {
at SapoEmailClient.waitForEmail (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/shared/src/SapoEmailClient.ts:75:15)
at SapoEmailClient.getPin (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/shared/src/SapoEmailClient.ts:79:21)
at Dapps.fillCredentials (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:57:17)
at Dapps.requestConnectionFromDapp (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:44:7)
at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/connect.spec.ts:21:5
|
Run e2e tests:
e2e/src/webwallet/page-objects/Dapps.ts#L65
1) [WebWallet] › src/webwallet/specs/connect.spec.ts:17:7 › Connect › connect from testDapp using webwallet connector
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.fill: Timeout 120000ms exceeded.
Call log:
- waiting for locator('[name=password]')
at src/webwallet/page-objects/Dapps.ts:65
63 | await page.locator("[name=repeatPassword]").fill(credentials.password)
64 | } else {
> 65 | await page.locator("[name=password]").fill(credentials.password)
| ^
66 | }
67 |
68 | await page.locator('button[type="submit"]').click()
at Dapps.fillCredentials (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:65:45)
at Dapps.requestConnectionFromDapp (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:44:7)
at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/connect.spec.ts:21:5
|
Run e2e tests:
e2e/src/shared/src/SapoEmailClient.ts#L75
2) [WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp
Error: No verification code found within 30000ms
at src/shared/src/SapoEmailClient.ts:75
73 | }
74 |
> 75 | throw new Error(`No verification code found within ${timeout}ms`);
| ^
76 | }
77 |
78 | async getPin(): Promise<string> {
at SapoEmailClient.waitForEmail (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/shared/src/SapoEmailClient.ts:75:15)
at SapoEmailClient.getPin (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/shared/src/SapoEmailClient.ts:79:21)
at Dapps.fillCredentials (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:57:17)
at Dapps.requestConnectionFromDapp (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:37:21)
at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/signMessage.spec.ts:6:18
|
Run e2e tests:
e2e/src/shared/src/SapoEmailClient.ts#L75
2) [WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: No verification code found within 30000ms
at src/shared/src/SapoEmailClient.ts:75
73 | }
74 |
> 75 | throw new Error(`No verification code found within ${timeout}ms`);
| ^
76 | }
77 |
78 | async getPin(): Promise<string> {
at SapoEmailClient.waitForEmail (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/shared/src/SapoEmailClient.ts:75:15)
at SapoEmailClient.getPin (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/shared/src/SapoEmailClient.ts:79:21)
at Dapps.fillCredentials (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:57:17)
at Dapps.requestConnectionFromDapp (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:37:21)
at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/signMessage.spec.ts:6:18
|
Run e2e tests:
e2e/src/webwallet/page-objects/Dapps.ts#L94
3) [WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp
Error: page.screenshot: Target page, context or browser has been closed
at src/webwallet/page-objects/Dapps.ts:94
92 | .toBeVisible()
93 | .catch(async () => {
> 94 | await popup.screenshot({ path: `${artifactsDir}/${randomUUID()}.png` })
| ^
95 | throw new Error("Email not visible")
96 | })
97 | }
at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:94:21
at Dapps.verifyEmailInPopup (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:91:5)
at Dapps.requestConnectionFromDapp (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:38:7)
at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/transactions.spec.ts:6:18
|
Run e2e tests:
e2e/src/webwallet/page-objects/Dapps.ts#L107
3) [WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp
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:107
105 | }) {
106 | const popupPromise = dapp.waitForEvent("popup")
> 107 | const dialogPromise = dapp.waitForEvent("dialog")
| ^
108 | await dapp.locator('button :text-is("Transactions")').click()
109 | await dapp.locator(`button :text-is("Send ${type}")`).click()
110 |
at Dapps.sendERC20transaction (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:107:32)
at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/transactions.spec.ts:13:27
|
Run e2e tests:
e2e/src/webwallet/page-objects/Dapps.ts#L114
3) [WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Target page, context or browser has been closed
Call log:
- waiting for locator('button[type="submit"]')
- locator resolved to <button disabled type="submit" class="chakra-button css-16m253l">Confirm</button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #1
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #2
- waiting 20ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #3
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #4
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #5
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #6
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #7
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #8
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #9
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #10
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #11
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #12
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #13
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #14
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #15
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #16
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #17
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #18
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #19
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #20
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #21
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #22
- waiting 500ms
- waiting for ele
|
Run e2e tests:
e2e/src/webwallet/page-objects/Dapps.ts#L107
4) [WebWallet] › src/webwallet/specs/transactions.spec.ts:19:7 › Transactions › send an Multicall from testDapp
TimeoutError: page.waitForEvent: Timeout 120000ms exceeded while waiting for event "dialog"
=========================== logs ===========================
waiting for event "dialog"
============================================================
at src/webwallet/page-objects/Dapps.ts:107
105 | }) {
106 | const popupPromise = dapp.waitForEvent("popup")
> 107 | const dialogPromise = dapp.waitForEvent("dialog")
| ^
108 | await dapp.locator('button :text-is("Transactions")').click()
109 | await dapp.locator(`button :text-is("Send ${type}")`).click()
110 |
at Dapps.sendERC20transaction (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:107:32)
at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/transactions.spec.ts:27:27
|
Run e2e tests:
e2e/src/webwallet/page-objects/Dapps.ts#L114
4) [WebWallet] › src/webwallet/specs/transactions.spec.ts:19:7 › Transactions › send an Multicall from testDapp
Error: locator.click: Target page, context or browser has been closed
Call log:
- waiting for locator('button[type="submit"]')
- locator resolved to <button disabled type="submit" class="chakra-button css-16m253l">Confirm</button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #1
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #2
- waiting 20ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #3
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #4
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #5
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #6
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #7
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #8
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #9
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #10
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #11
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #12
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #13
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #14
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #15
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #16
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #17
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #18
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #19
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #20
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #21
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click action, attempt #22
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not enabled
- retrying click ac
|
Run e2e tests:
e2e/src/webwallet/page-objects/Dapps.ts#L107
4) [WebWallet] › src/webwallet/specs/transactions.spec.ts:19:7 › Transactions › send an Multicall from testDapp
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:107
105 | }) {
106 | const popupPromise = dapp.waitForEvent("popup")
> 107 | const dialogPromise = dapp.waitForEvent("dialog")
| ^
108 | await dapp.locator('button :text-is("Transactions")').click()
109 | await dapp.locator(`button :text-is("Send ${type}")`).click()
110 |
at Dapps.sendERC20transaction (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:107:32)
at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/transactions.spec.ts:27:27
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run e2e tests
4 failed
[WebWallet] › src/webwallet/specs/connect.spec.ts:17:7 › Connect › connect from testDapp using webwallet connector
[WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp
[WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp
[WebWallet] › src/webwallet/specs/transactions.spec.ts:19:7 › Transactions › send an Multicall from testDapp
1 passed (10.1m)
|
Loading