feat: added timeout and 3 attempts to launch browser context #343
Annotations
3 errors, 1 warning, and 1 notice
|
Run wallets tests:
wallets-testing/pages/iframeWidget.page.ts#L137
3) [Widget] › test/widgets/iframeWidget.spec.ts:51:7 › Test widget Lido app of Safe wallet (iframe) › Request Withdraw wstETH transaction initialization › Connect wallet safeIframe › Connect wallet to Lido app in Safe
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).not.toBeVisible()
Locator: locator('iframe').first().contentFrame().getByRole('button').getByText('Connect', { exact: true })
Expected: not visible
Received: visible
Call log:
- expect.not.toBeVisible with timeout 5000ms
- waiting for locator('iframe').first().contentFrame().getByRole('button').getByText('Connect', { exact: true })
9 × locator resolved to <span class="sc-empnci mJQFr">Connect</span>
- unexpected value "visible"
at ../pages/iframeWidget.page.ts:137
135 | 'Interrupting the test process because safe is not connected',
136 | );
> 137 | await expect(this.connectBtn).not.toBeVisible();
| ^
138 | });
139 | }
140 |
at /home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/pages/iframeWidget.page.ts:137:41
at IframeWidgetPage.connectWallet (/home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/pages/iframeWidget.page.ts:106:12)
at /home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/services/service.widget.ts:39:11
at WidgetService.connectWallet (/home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/services/service.widget.ts:31:5)
at request (/home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/utils/helpers.ts:84:3)
at /home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/test/widgets/iframeWidget.spec.ts:52:5
|
|
Run wallets tests:
wallets-testing/pages/iframeWidget.page.ts#L137
2) [Widget] › test/widgets/iframeWidget.spec.ts:43:7 › Test widget Lido app of Safe wallet (iframe) › Unwrap wstETH transaction initialization › Connect wallet safeIframe › Connect wallet to Lido app in Safe
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).not.toBeVisible()
Locator: locator('iframe').first().contentFrame().getByRole('button').getByText('Connect', { exact: true })
Expected: not visible
Received: visible
Call log:
- expect.not.toBeVisible with timeout 5000ms
- waiting for locator('iframe').first().contentFrame().getByRole('button').getByText('Connect', { exact: true })
9 × locator resolved to <span class="sc-empnci mJQFr">Connect</span>
- unexpected value "visible"
at ../pages/iframeWidget.page.ts:137
135 | 'Interrupting the test process because safe is not connected',
136 | );
> 137 | await expect(this.connectBtn).not.toBeVisible();
| ^
138 | });
139 | }
140 |
at /home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/pages/iframeWidget.page.ts:137:41
at IframeWidgetPage.connectWallet (/home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/pages/iframeWidget.page.ts:106:12)
at /home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/services/service.widget.ts:39:11
at WidgetService.connectWallet (/home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/services/service.widget.ts:31:5)
at unwrap (/home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/utils/helpers.ts:74:3)
at /home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/test/widgets/iframeWidget.spec.ts:44:5
|
|
Run wallets tests:
packages/wallets/src/safe/pages/setup.page.ts#L140
1) [Widget] › test/widgets/iframeWidget.spec.ts:31:7 › Test widget Lido app of Safe wallet (iframe) › Stake transaction initialization
TimeoutError: locator.waitFor: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('open-account-center') to be visible
at ../../packages/wallets/src/safe/pages/setup.page.ts:140
138 | // Expect the wallet is connected
139 | }
> 140 | await this.accountCenter.waitFor({ state: 'visible', timeout: 5000 });
| ^
141 | });
142 | }
143 |
at /home/runner/work/wallets-testing-modules/wallets-testing-modules/packages/wallets/src/safe/pages/setup.page.ts:140:32
at SetupPage.connectWalletExtension (/home/runner/work/wallets-testing-modules/wallets-testing-modules/packages/wallets/src/safe/pages/setup.page.ts:98:5)
at /home/runner/work/wallets-testing-modules/wallets-testing-modules/packages/wallets/src/safe/pages/setup.page.ts:70:7
at SetupPage.firstTimeSetupWallet (/home/runner/work/wallets-testing-modules/wallets-testing-modules/packages/wallets/src/safe/pages/setup.page.ts:45:12)
at /home/runner/work/wallets-testing-modules/wallets-testing-modules/packages/wallets/src/safe/safeIframe.page.ts:41:30
at SafeIframePage.setup (/home/runner/work/wallets-testing-modules/wallets-testing-modules/packages/wallets/src/safe/safeIframe.page.ts:39:5)
at BrowserService.setup (/home/runner/work/wallets-testing-modules/wallets-testing-modules/packages/browser-service/src/browser.service.ts:139:5)
at BrowserService.initWalletSetup (/home/runner/work/wallets-testing-modules/wallets-testing-modules/packages/browser-service/src/browser.service.ts:86:7)
at initBrowserWithExtension (/home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/utils/helpers.ts:37:3)
at /home/runner/work/wallets-testing-modules/wallets-testing-modules/wallets-testing/test/widgets/iframeWidget.spec.ts:25:22
|
|
Run lint:
packages/pg-reporter/src/reportRuntime.ts#L254
Forbidden non-null assertion
|
|
Run wallets tests
3 flaky
[Widget] › test/widgets/iframeWidget.spec.ts:31:7 › Test widget Lido app of Safe wallet (iframe) › Stake transaction initialization
[Widget] › test/widgets/iframeWidget.spec.ts:43:7 › Test widget Lido app of Safe wallet (iframe) › Unwrap wstETH transaction initialization
[Widget] › test/widgets/iframeWidget.spec.ts:51:7 › Test widget Lido app of Safe wallet (iframe) › Request Withdraw wstETH transaction initialization
4 passed (9.5m)
|
Loading