Skip to content

test: use playwright text locator waitFor in live app smoke tests #1224

test: use playwright text locator waitFor in live app smoke tests

test: use playwright text locator waitFor in live app smoke tests #1224

Triggered via pull request October 9, 2024 17:25
Status Failure
Total duration 12m 35s
Artifacts 12

build-and-test-pr.yml

on: pull_request
Turbo Affected  /  Determine Affected
1m 8s
Turbo Affected / Determine Affected
Test Mobile E2E  /  Ledger Live Mobile - Android Detox Tests
Test Mobile E2E / Ledger Live Mobile - Android Detox Tests
Test Mobile E2E  /  LLM - iOS Detox Tests
Test Mobile E2E / LLM - iOS Detox Tests
Test Desktop  /  Desktop Tests E2E (Ubuntu)
9m 49s
Test Desktop / Desktop Tests E2E (Ubuntu)
Matrix: Build Desktop / build-desktop-app
Build Mobile  /  Build LLM | Android
Build Mobile / Build LLM | Android
Build Mobile  /  Build LLM | iOS
Build Mobile / Build LLM | iOS
Test Design System  /  Design System Tests
Test Design System / Design System Tests
Test Mobile  /  LLM CodeCheck
Test Mobile / LLM CodeCheck
Test CLI  /  Test CLI
Test CLI / Test CLI
Test Desktop  /  LLD Code Checks
7m 29s
Test Desktop / LLD Code Checks
Test Desktop  /  Desktop Unit Tests
4m 24s
Test Desktop / Desktop Unit Tests
Test Libraries  /  Codecheck Libraries
Test Libraries / Codecheck Libraries
Test Libraries  /  Test Docs
Test Libraries / Test Docs
Test Libraries  /  Test Libraries
Test Libraries / Test Libraries
Test Web Tools  /  Test web-tools
Test Web Tools / Test web-tools
Test Mobile E2E  /  Allure Reports Export on Server
Test Mobile E2E / Allure Reports Export on Server
Matrix: Test Mobile E2E / Upload to Xray
Waiting for pending jobs
Test Mobile E2E  /  report
Test Mobile E2E / report
Test Mobile E2E  /  report-on-slack
Test Mobile E2E / report-on-slack
Test Mobile E2E  /  Allure Reports Export on Server
Test Mobile E2E / Allure Reports Export on Server
Test Desktop  /  Allure Reports Export on Server
0s
Test Desktop / Allure Reports Export on Server
Build Desktop  /  report
22s
Build Desktop / report
Build Mobile  /  report
Build Mobile / report
Test CLI  /  report
Test CLI / report
Test Desktop  /  report
39s
Test Desktop / report
Test Libraries  /  report
Test Libraries / report
Test Web Tools  /  report
Test Web Tools / report
Fit to window
Zoom out
Zoom in

Annotations

9 errors, 2 warnings, and 1 notice
Test Desktop / LLD Code Checks
ledger-live-desktop#lint: command (/home/runner/work/ledger-live/ledger-live/apps/ledger-live-desktop) /home/runner/setup-pnpm/node_modules/.bin/pnpm run lint --format=json -o=lint-desktop.json exited (1)
Test Desktop / LLD Code Checks
Process completed with exit code 1.
Test Desktop / Desktop Tests E2E (Ubuntu)
Error: expect(locator).toBeVisible() Locator: getByText('currency: ethereum/erc20/usd_tether__erc20_') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 41000ms - waiting for getByText('currency: ethereum/erc20/usd_tether__erc20_') Failed worker ran 6 tests: [mocked_tests] › tests/specs/accounts/account.spec.ts:23:9 › Accounts @smoke › [Tron] Add account [mocked_tests] › tests/specs/analytics/segment.spec.ts:13:5 › Segment [mocked_tests] › tests/specs/families/ethereum.spec.ts:8:5 › Send flow [mocked_tests] › tests/specs/manager/customImage.spec.ts:12:5 › Custom image [mocked_tests] › tests/specs/onboarding/setup-device.spec.ts:19:9 › Onboarding › [nanoX] Onboarding flow new device [mocked_tests] › tests/specs/services/buy.spec.ts:42:5 › Buy / Sell @smoke at specs/services/buy.spec.ts:77 75 | "currency: ethereum/erc20/usd_tether__erc20_", 76 | ), > 77 | ).toBeVisible(); | ^ 78 | expect(await liveAppWebview.waitForCorrectTextInWebview("mode: buy")).toBeVisible(); 79 | expect(await liveAppWebview.waitForCorrectTextInWebview("lang: en")).toBeVisible(); 80 | expect(await liveAppWebview.waitForCorrectTextInWebview("locale: en-US")).toBeVisible(); at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/buy.spec.ts:77:7 at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/buy.spec.ts:69:3
Test Desktop / Desktop Tests E2E (Ubuntu)
Error: expect(locator).toBeVisible() Locator: getByText('lang: en') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 41000ms - waiting for getByText('lang: en') Failed worker ran 6 tests: [mocked_tests] › tests/specs/accounts/account.spec.ts:23:9 › Accounts @smoke › [XRP] Add account [mocked_tests] › tests/specs/general/layout.spec.ts:11:5 › Layout @smoke [mocked_tests] › tests/specs/manager/devicelocalization.spec.ts:13:5 › Manager [mocked_tests] › tests/specs/onboarding/restore-device.spec.ts:19:9 › Onboarding › [nanoX] Onboarding flow already set up [mocked_tests] › tests/specs/recover/recover.spec.ts:21:7 › Recover @smoke › Restore page with nanoX [mocked_tests] › tests/specs/services/earn.spec.ts:33:5 › Earn @smoke at specs/services/earn.spec.ts:47 45 | 46 | expect(await liveAppWebview.waitForCorrectTextInWebview("theme: dark")).toBeVisible(); > 47 | expect(await liveAppWebview.waitForCorrectTextInWebview("lang: en")).toBeVisible(); | ^ 48 | expect(await liveAppWebview.waitForCorrectTextInWebview("locale: en-US")).toBeVisible(); 49 | expect(await liveAppWebview.waitForCorrectTextInWebview("discreetMode: false")).toBeVisible(); 50 | expect(await liveAppWebview.waitForCorrectTextInWebview("currencyTicker: USD")).toBeVisible(); at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/earn.spec.ts:47:74 at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/earn.spec.ts:42:3
[mocked_tests] › specs/market/market.spec.ts:34:5 › Market: apps/ledger-live-desktop/tests/specs/market/market.spec.ts#L167
1) [mocked_tests] › specs/market/market.spec.ts:34:5 › Market › buy bitcoin from market page ───── Error: Timed out 41000ms waiting for expect(locator).toBeVisible() Locator: getByText('theme: dark') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 41000ms - waiting for getByText('theme: dark') 165 | .soft(page) 166 | .toHaveScreenshot("market-btc-buy-page.png", { mask: [page.locator("webview")] }); > 167 | await expect(await liveAppWebview.waitForCorrectTextInWebview("theme: dark")).toBeVisible(); | ^ 168 | await expect(await liveAppWebview.waitForCorrectTextInWebview("currency: bitcoin")).toBeVisible(); 169 | await expect(await liveAppWebview.waitForCorrectTextInWebview("mode: buy")).toBeVisible(); 170 | await expect(await liveAppWebview.waitForCorrectTextInWebview("lang: en")).toBeVisible(); at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/market/market.spec.ts:167:83 at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/market/market.spec.ts:162:3
[mocked_tests] › specs/services/buy.spec.ts:42:5 › Buy / Sell @smoke: apps/ledger-live-desktop/tests/specs/services/buy.spec.ts#L72
2) [mocked_tests] › specs/services/buy.spec.ts:42:5 › Buy / Sell @smoke ────────────────────────── Error: expect(locator).toBeVisible() Locator: getByText('theme: dark') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 41000ms - waiting for getByText('theme: dark') 70 | await layout.goToMarket(); 71 | await marketPage.openBuyPage("usdt"); > 72 | expect(await liveAppWebview.waitForCorrectTextInWebview("theme: dark")).toBeVisible(); | ^ 73 | expect( 74 | await liveAppWebview.waitForCorrectTextInWebview( 75 | "currency: ethereum/erc20/usd_tether__erc20_", at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/buy.spec.ts:72:77 at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/buy.spec.ts:69:3
[mocked_tests] › specs/services/earn.spec.ts:33:5 › Earn @smoke: apps/ledger-live-desktop/tests/specs/services/earn.spec.ts#L46
3) [mocked_tests] › specs/services/earn.spec.ts:33:5 › Earn @smoke ─────────────────────────────── Error: expect(locator).toBeVisible() Locator: getByText('theme: dark') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 41000ms - waiting for getByText('theme: dark') 44 | await liveAppWebview.waitForLoaded(); 45 | > 46 | expect(await liveAppWebview.waitForCorrectTextInWebview("theme: dark")).toBeVisible(); | ^ 47 | expect(await liveAppWebview.waitForCorrectTextInWebview("lang: en")).toBeVisible(); 48 | expect(await liveAppWebview.waitForCorrectTextInWebview("locale: en-US")).toBeVisible(); 49 | expect(await liveAppWebview.waitForCorrectTextInWebview("discreetMode: false")).toBeVisible(); at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/earn.spec.ts:46:77 at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/services/earn.spec.ts:42:3
Test Desktop / Desktop Tests E2E (Ubuntu)
Process completed with exit code 1.
OK
Process completed with exit code 1.
Test Desktop / Desktop Tests E2E (Ubuntu)
This job failure may be caused by using an out of date self-hosted runner. You are currently using runner version 2.319.1. Please update to the latest version 2.320.0
Slow Test: apps/ledger-live-desktop/[mocked_tests] › specs/market/market.spec.ts#L1
apps/ledger-live-desktop/[mocked_tests] › specs/market/market.spec.ts took 1.2m
🎭 Playwright Run Summary
3 failed [mocked_tests] › specs/market/market.spec.ts:34:5 › Market ───────────────────────────────────── [mocked_tests] › specs/services/buy.spec.ts:42:5 › Buy / Sell @smoke ─────────────────────────── [mocked_tests] › specs/services/earn.spec.ts:33:5 › Earn @smoke ──────────────────────────────── 3 skipped 62 passed (7.4m)

Artifacts

Produced during runtime
Name Size
2.88.0-sha.9bd0696452e588a844c32ddffc134e201400013f-linux-x86_64.AppImage
177 MB
2.88.0-sha.9bd0696452e588a844c32ddffc134e201400013f-mac.dmg
242 MB
2.88.0-sha.9bd0696452e588a844c32ddffc134e201400013f-win-x64.exe
138 MB
allure-results-linux
613 KB
images
152 Bytes
lint-desktop
38 KB
linux-js-bundle-metafiles
652 KB
mac-js-bundle-metafiles
652 KB
playwright-results-linux
2.81 MB
summary-build-desktop.json
360 Bytes
summary-test-desktop.json
1.03 KB
win-js-bundle-metafiles
652 KB