chore: webwallet e2e test for tx and sign #85
Annotations
9 errors, 4 warnings, and 2 notices
[WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp:
e2e/src/webwallet/page-objects/Dapps.ts#L145
1) [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('Sign Message')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 120000ms
- waiting for getByText('Sign Message')
at src/webwallet/page-objects/Dapps.ts:145
143 |
144 | const [popup] = await popupPromise
> 145 | await expect(popup.getByText("Sign Message")).toBeVisible()
| ^
146 | console.log("Signing message: sign message visible")
147 | await expect(popup.getByText("Confirm")).toBeVisible()
148 | console.log("Signing message: confirm visible")
at Dapps.signMessage (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:145:51)
at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/signMessage.spec.ts:13:5
|
[WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp:
e2e/src/webwallet/page-objects/Dapps.ts#L94
1) [WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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/signMessage.spec.ts:6:18
|
[WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp:
e2e/src/webwallet/page-objects/Dapps.ts#L94
2) [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
|
[WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp:
e2e/src/webwallet/page-objects/Dapps.ts#L111
2) [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:111
109 | ])
110 |
> 111 | const dialogPromise = dapp.waitForEvent("dialog")
| ^
112 | console.log("Sending ERC20 transaction")
113 | await dapp.locator('button :text-is("Transactions")').click()
114 | await dapp.locator(`button :text-is("Send ${type}")`).click()
at Dapps.sendERC20transaction (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:111:32)
at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/transactions.spec.ts:13:27
|
[WebWallet] › src/webwallet/specs/transactions.spec.ts:19:7 › Transactions › send an Multicall from testDapp:
e2e/src/webwallet/page-objects/Dapps.ts#L111
3) [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:111
109 | ])
110 |
> 111 | const dialogPromise = dapp.waitForEvent("dialog")
| ^
112 | console.log("Sending ERC20 transaction")
113 | await dapp.locator('button :text-is("Transactions")').click()
114 | await dapp.locator(`button :text-is("Send ${type}")`).click()
at Dapps.sendERC20transaction (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:111:32)
at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/transactions.spec.ts:27:27
|
[WebWallet] › src/webwallet/specs/transactions.spec.ts:19:7 › Transactions › send an Multicall from testDapp:
e2e/src/webwallet/page-objects/Dapps.ts#L94
3) [WebWallet] › src/webwallet/specs/transactions.spec.ts:19:7 › Transactions › send an Multicall from testDapp
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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:20:18
|
[WebWallet] › src/webwallet/specs/connect.spec.ts:5:7 › Connect › connect from testDapp using starknetKitModal:
e2e/src/shared/src/SapoEmailClient.ts#L75
4) [WebWallet] › src/webwallet/specs/connect.spec.ts:5:7 › Connect › connect from testDapp using starknetKitModal
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/connect.spec.ts:9:5
|
[WebWallet] › src/webwallet/specs/connect.spec.ts:17:7 › Connect › connect from testDapp using webwallet connector:
e2e/src/webwallet/page-objects/Dapps.ts#L65
5) [WebWallet] › src/webwallet/specs/connect.spec.ts:17:7 › Connect › connect from testDapp using webwallet connector
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
|
test-webwallet
Process completed with exit code 1.
|
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test-argentX
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test-argentX
No files were found with the provided path: e2e/artifacts/playwright/
!e2e/artifacts/playwright/*.webm. No artifacts will be uploaded.
|
test-webwallet
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
🎭 Playwright Run Summary
2 passed (27.1s)
|
🎭 Playwright Run Summary
3 failed
[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
2 flaky
[WebWallet] › src/webwallet/specs/connect.spec.ts:5:7 › Connect › connect from testDapp using starknetKitModal
[WebWallet] › src/webwallet/specs/connect.spec.ts:17:7 › Connect › connect from testDapp using webwallet connector
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-artifacts
Expired
|
61.1 MB |
|