feat: useCheckNftAccount in [LIB] (#7891) #177
Annotations
4 errors and 1 notice
apps/ledger-live-desktop/tests/specs/services/swap.spec.ts#L75
1) [mocked_tests] › specs/services/swap.spec.ts:30:7 › Swap › Add accounts via Swap page @smoke ──
Error: Screenshot comparison failed:
47824 pixels (ratio 0.07 of all image pixels) are different.
Expected: /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/swap.spec.ts-snapshots/open-swap-page-with-eth-account-selected-linux.png
Received: /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/artifacts/test-results/services-swap-Swap-Add-accounts-via-Swap-page-smoke-mocked-tests/open-swap-page-with-eth-account-selected-actual.png
Diff: /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/artifacts/test-results/services-swap-Swap-Add-accounts-via-Swap-page-smoke-mocked-tests/open-swap-page-with-eth-account-selected-diff.png
Call log:
- expect.soft.toHaveScreenshot(open-swap-page-with-eth-account-selected.png) with timeout 41000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 47824 pixels (ratio 0.07 of all image pixels) are different.
- waiting 100ms before taking screenshot
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- captured a stable screenshot
- 47824 pixels (ratio 0.07 of all image pixels) are different.
73 | await accountsPage.navigateToAccountByName(ethereumAccountName);
74 | await accountPage.navigateToSwap();
> 75 | await expect.soft(page).toHaveScreenshot("open-swap-page-with-eth-account-selected.png");
| ^
76 | });
77 |
78 | await test.step("Open source (From) account dropdown", async () => {
at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/swap.spec.ts:75:31
at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/swap.spec.ts:71:5
|
apps/ledger-live-desktop/tests/page/swap.page.ts#L77
1) [mocked_tests] › specs/services/swap.spec.ts:30:7 › Swap › Add accounts via Swap page @smoke ──
TimeoutError: locator.click: Timeout 99000ms exceeded.
Call log:
- waiting for getByText('Ethereum 2')
at page/swap.page.ts:77
75 | async selectCurrencyByName(accountName: string) {
76 | await this.page.waitForTimeout(500); // TODO: Needs to be fixed once we have accessible element
> 77 | await this.currencyByName(accountName).click();
| ^
78 | }
79 |
80 | async addAccountFromAccountDropdown() {
at SwapPage.selectCurrencyByName (/home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/page/swap.page.ts:77:44)
at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/swap.spec.ts:79:7
at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/swap.spec.ts:78:5
|
apps/ledger-live-desktop/tests/page/swap.page.ts#L53
2) [mocked_tests] › specs/services/swap.spec.ts:108:7 › Swap › Full Swap with Centralised Exchange @smoke › Open Swap Page
TimeoutError: locator.waitFor: Timeout 99000ms exceeded.
Call log:
- waiting for getByTestId('swap-max-spendable-toggle') to be visible
at page/swap.page.ts:53
51 |
52 | async waitForSwapFormToLoad() {
> 53 | await this.maxSpendableToggle.waitFor({ state: "visible" });
| ^
54 | }
55 |
56 | async sendMax() {
at SwapPage.waitForSwapFormToLoad (/home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/page/swap.page.ts:53:35)
at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/swap.spec.ts:151:22
at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/swap.spec.ts:149:5
|
|
|
This job failed
Loading