Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: failing ledger test #5792

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/specs/ledger/ledger.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
};

async function interceptBitcoinRequests(homePage: HomePage) {
const requestPromise = homePage.page.waitForRequest(/bestinslot|mempool|inscriptions/, {
const requestPromise = homePage.page.waitForRequest(/bestinslot|mempool\.space|inscriptions/, {
timeout: 1000,
});
return requestPromise;
Expand All @@ -27,7 +27,7 @@
});

test('that homepage renders correctly', async ({ homePage }) => {
await test.expect(homePage.page.locator('text="Send"').first()).toBeVisible();

Check failure on line 30 in tests/specs/ledger/ledger.spec.ts

View workflow job for this annotation

GitHub Actions / Shard 1 of 10

[chromium] › specs/ledger/ledger.spec.ts:29:7 › App with Ledger › withBitcoinAndStacksKey › that homepage renders correctly

1) [chromium] › specs/ledger/ledger.spec.ts:29:7 › App with Ledger › withBitcoinAndStacksKey › that homepage renders correctly Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('text="Send"').first() Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('text="Send"').first() 28 | 29 | test('that homepage renders correctly', async ({ homePage }) => { > 30 | await test.expect(homePage.page.locator('text="Send"').first()).toBeVisible(); | ^ 31 | await test.expect(homePage.page.locator('text="Receive"').first()).toBeVisible(); 32 | await test.expect(homePage.page.locator('text="Buy"').first()).toBeVisible(); 33 | }); at /home/runner/work/extension/extension/tests/specs/ledger/ledger.spec.ts:30:73

Check failure on line 30 in tests/specs/ledger/ledger.spec.ts

View workflow job for this annotation

GitHub Actions / Shard 1 of 10

[chromium] › specs/ledger/ledger.spec.ts:29:7 › App with Ledger › withBitcoinAndStacksKey › that homepage renders correctly

1) [chromium] › specs/ledger/ledger.spec.ts:29:7 › App with Ledger › withBitcoinAndStacksKey › that homepage renders correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('text="Send"').first() Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('text="Send"').first() 28 | 29 | test('that homepage renders correctly', async ({ homePage }) => { > 30 | await test.expect(homePage.page.locator('text="Send"').first()).toBeVisible(); | ^ 31 | await test.expect(homePage.page.locator('text="Receive"').first()).toBeVisible(); 32 | await test.expect(homePage.page.locator('text="Buy"').first()).toBeVisible(); 33 | }); at /home/runner/work/extension/extension/tests/specs/ledger/ledger.spec.ts:30:73
await test.expect(homePage.page.locator('text="Receive"').first()).toBeVisible();
await test.expect(homePage.page.locator('text="Buy"').first()).toBeVisible();
});
Expand Down
Loading