Skip to content

chore: webwallet e2e test for tx and sign #81

chore: webwallet e2e test for tx and sign

chore: webwallet e2e test for tx and sign #81

Triggered via pull request December 6, 2024 14:52
@blueccobluecco
synchronize #12
WT-141
Status Failure
Total duration 10m 55s
Artifacts 1

pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 4 warnings, and 2 notices
[WebWallet] › src/webwallet/specs/connect.spec.ts:5:7 › Connect › connect from testDapp using starknetKitModal: e2e/src/shared/src/SapoEmailClient.ts#L75
1) [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:5:7 › Connect › connect from testDapp using starknetKitModal: e2e/src/shared/src/SapoEmailClient.ts#L75
1) [WebWallet] › src/webwallet/specs/connect.spec.ts:5:7 › Connect › connect from testDapp using starknetKitModal 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/connect.spec.ts:9:5
[WebWallet] › src/webwallet/specs/connect.spec.ts:17:7 › Connect › connect from testDapp using webwallet connector: e2e/src/shared/src/SapoEmailClient.ts#L75
2) [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
[WebWallet] › src/webwallet/specs/connect.spec.ts:17:7 › Connect › connect from testDapp using webwallet connector: e2e/src/webwallet/page-objects/Dapps.ts#L65
2) [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
[WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp: e2e/src/shared/src/SapoEmailClient.ts#L75
3) [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
[WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp: e2e/src/webwallet/page-objects/Dapps.ts#L136
3) [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('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:136 134 | 135 | const popup = await popupPromise > 136 | await expect(popup.getByText("Sign Message")).toBeVisible() | ^ 137 | await expect(popup.getByText("Confirm")).toBeVisible() 138 | await popup.locator('button[type="submit"]').click() 139 | await popup.waitForEvent("close", { timeout: 10000 }) at Dapps.signMessage (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:136:51) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/signMessage.spec.ts:13:5
[WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp: e2e/src/webwallet/page-objects/Dapps.ts#L107
4) [WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 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 | console.log("Sending ERC20 transaction") 109 | await dapp.locator('button :text-is("Transactions")').click() 110 | 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:107: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:5:7 › Transactions › send an ERC20 from testDapp: e2e/src/webwallet/page-objects/Dapps.ts#L118
4) [WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 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 action,
[WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp: e2e/src/shared/src/SapoEmailClient.ts#L75
4) [WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 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/transactions.spec.ts:6:18
[WebWallet] › src/webwallet/specs/transactions.spec.ts:19:7 › Transactions › send an Multicall from testDapp: e2e/src/webwallet/page-objects/Dapps.ts#L94
5) [WebWallet] › src/webwallet/specs/transactions.spec.ts:19:7 › Transactions › send an Multicall 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:20:18
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 (26.7s)
🎭 Playwright Run Summary
5 failed [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 [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

Artifacts

Produced during runtime
Name Size
test-artifacts Expired
43.9 MB