Skip to content

fix: only show swaps option on mainnet #4007

fix: only show swaps option on mainnet

fix: only show swaps option on mainnet #4007

Triggered via pull request December 14, 2023 14:24
Status Failure
Total duration 9m 43s
Artifacts 1
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

playwright.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 7 notices
[chromium] › specs/fund/fund.spec.ts:12:7 › Buy tokens test › should redirect to provider URL while funding STX: tests/specs/fund/fund.spec.ts#L17
1) [chromium] › specs/fund/fund.spec.ts:12:7 › Buy tokens test › should redirect to provider URL while funding STX Error: Timed out 5000ms waiting for expect(locator).not.toHaveCount(expected) Locator: getByTestId('fiat-provider-name') Expected: not 0 Received: 0 Call log: - expect.not.toHaveCount with timeout 5000ms - waiting for getByTestId('fiat-provider-name') - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 15 | }) => { 16 | await fundChooseCurrencyPage.goToFundStxPage(); > 17 | await test.expect(page.getByTestId(FundPageSelectors.FiatProviderName)).not.toHaveCount(0); | ^ 18 | 19 | const providerNames = await page.getByTestId(FundPageSelectors.FiatProviderName).all(); 20 | const name = await providerNames[0].innerText(); at /home/runner/work/extension/extension/tests/specs/fund/fund.spec.ts:17:81
[chromium] › specs/fund/fund.spec.ts:12:7 › Buy tokens test › should redirect to provider URL while funding STX: tests/specs/fund/fund.spec.ts#L17
1) [chromium] › specs/fund/fund.spec.ts:12:7 › Buy tokens test › should redirect to provider URL while funding STX Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).not.toHaveCount(expected) Locator: getByTestId('fiat-provider-name') Expected: not 0 Received: 0 Call log: - expect.not.toHaveCount with timeout 5000ms - waiting for getByTestId('fiat-provider-name') - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 15 | }) => { 16 | await fundChooseCurrencyPage.goToFundStxPage(); > 17 | await test.expect(page.getByTestId(FundPageSelectors.FiatProviderName)).not.toHaveCount(0); | ^ 18 | 19 | const providerNames = await page.getByTestId(FundPageSelectors.FiatProviderName).all(); 20 | const name = await providerNames[0].innerText(); at /home/runner/work/extension/extension/tests/specs/fund/fund.spec.ts:17:81
[chromium] › specs/send/send-btc.spec.ts:21:9 › send btc › btc send form › that it shows preview of tx details to be confirmed: tests/specs/send/send-btc.spec.ts#L11
1) [chromium] › specs/send/send-btc.spec.ts:21:9 › send btc › btc send form › that it shows preview of tx details to be confirmed Test timeout of 30000ms exceeded while running "beforeEach" hook. 9 | 10 | test.describe('send btc', () => { > 11 | test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, sendPage }) => { | ^ 12 | await globalPage.setupAndUseApiCalls(extensionId); 13 | await onboardingPage.signInWithTestAccount(extensionId); 14 | await homePage.enableTestMode(); at /home/runner/work/extension/extension/tests/specs/send/send-btc.spec.ts:11:8
[chromium] › specs/send/send-btc.spec.ts:31:9 › send btc › btc send form › that recipient input is trimmed correctly: tests/specs/send/send-btc.spec.ts#L11
1) [chromium] › specs/send/send-btc.spec.ts:31:9 › send btc › btc send form › that recipient input is trimmed correctly Test timeout of 30000ms exceeded while running "beforeEach" hook. 9 | 10 | test.describe('send btc', () => { > 11 | test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, sendPage }) => { | ^ 12 | await globalPage.setupAndUseApiCalls(extensionId); 13 | await onboardingPage.signInWithTestAccount(extensionId); 14 | await homePage.enableTestMode(); at /home/runner/work/extension/extension/tests/specs/send/send-btc.spec.ts:11:8
[chromium] › specs/send/send-btc.spec.ts:43:9 › send btc › btc send form › that asset value and recipient on preview match input: tests/specs/send/send-btc.spec.ts#L11
2) [chromium] › specs/send/send-btc.spec.ts:43:9 › send btc › btc send form › that asset value and recipient on preview match input Test timeout of 30000ms exceeded while running "beforeEach" hook. 9 | 10 | test.describe('send btc', () => { > 11 | test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, sendPage }) => { | ^ 12 | await globalPage.setupAndUseApiCalls(extensionId); 13 | await onboardingPage.signInWithTestAccount(extensionId); 14 | await homePage.enableTestMode(); at /home/runner/work/extension/extension/tests/specs/send/send-btc.spec.ts:11:8
[chromium] › specs/profile/profile.spec.ts:37:7 › Profile updating › should show profile details: tests/specs/profile/profile.spec.ts#L25
1) [chromium] › specs/profile/profile.spec.ts:37:7 › Profile updating › should show profile details Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. 23 | } 24 | > 25 | test.beforeEach(async ({ extensionId, globalPage, onboardingPage, context }) => { | ^ 26 | await globalPage.setupAndUseApiCalls(extensionId); 27 | await onboardingPage.signInWithTestAccount(extensionId); 28 | testAppPage = await TestAppPage.openDemoPage(context); at /home/runner/work/extension/extension/tests/specs/profile/profile.spec.ts:25:8
[chromium] › specs/profile/profile.spec.ts:56:7 › Profile updating › should send a signed profile token to gaia: tests/specs/profile/profile.spec.ts#L25
2) [chromium] › specs/profile/profile.spec.ts:56:7 › Profile updating › should send a signed profile token to gaia Test timeout of 30000ms exceeded while running "beforeEach" hook. 23 | } 24 | > 25 | test.beforeEach(async ({ extensionId, globalPage, onboardingPage, context }) => { | ^ 26 | await globalPage.setupAndUseApiCalls(extensionId); 27 | await onboardingPage.signInWithTestAccount(extensionId); 28 | testAppPage = await TestAppPage.openDemoPage(context); at /home/runner/work/extension/extension/tests/specs/profile/profile.spec.ts:25:8
[chromium] › specs/swap/swap.spec.ts:14:7 › Swaps › that it defaults to swapping STX: tests/specs/swap/swap.spec.ts#L6
1) [chromium] › specs/swap/swap.spec.ts:14:7 › Swaps › that it defaults to swapping STX ────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. 4 | 5 | test.describe('Swaps', () => { > 6 | test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, swapPage }) => { | ^ 7 | await globalPage.setupAndUseApiCalls(extensionId); 8 | await onboardingPage.signInWithTestAccount(extensionId); 9 | await homePage.enableTestMode(); at /home/runner/work/extension/extension/tests/specs/swap/swap.spec.ts:6:8
[chromium] › specs/swap/swap.spec.ts:14:7 › Swaps › that it defaults to swapping STX: tests/specs/swap/swap.spec.ts#L6
1) [chromium] › specs/swap/swap.spec.ts:14:7 › Swaps › that it defaults to swapping STX ────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. 4 | 5 | test.describe('Swaps', () => { > 6 | test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, swapPage }) => { | ^ 7 | await globalPage.setupAndUseApiCalls(extensionId); 8 | await onboardingPage.signInWithTestAccount(extensionId); 9 | await homePage.enableTestMode(); at /home/runner/work/extension/extension/tests/specs/swap/swap.spec.ts:6:8
[chromium] › specs/swap/swap.spec.ts:14:7 › Swaps › that it defaults to swapping STX: tests/specs/swap/swap.spec.ts#L6
1) [chromium] › specs/swap/swap.spec.ts:14:7 › Swaps › that it defaults to swapping STX ────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. 4 | 5 | test.describe('Swaps', () => { > 6 | test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, swapPage }) => { | ^ 7 | await globalPage.setupAndUseApiCalls(extensionId); 8 | await onboardingPage.signInWithTestAccount(extensionId); 9 | await homePage.enableTestMode(); at /home/runner/work/extension/extension/tests/specs/swap/swap.spec.ts:6:8
[chromium] › specs/swap/swap.spec.ts:18:7 › Swaps › that it shows correct swap review details: tests/specs/swap/swap.spec.ts#L6
2) [chromium] › specs/swap/swap.spec.ts:18:7 › Swaps › that it shows correct swap review details ─ Test timeout of 30000ms exceeded while running "beforeEach" hook. 4 | 5 | test.describe('Swaps', () => { > 6 | test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, swapPage }) => { | ^ 7 | await globalPage.setupAndUseApiCalls(extensionId); 8 | await onboardingPage.signInWithTestAccount(extensionId); 9 | await homePage.enableTestMode(); at /home/runner/work/extension/extension/tests/specs/swap/swap.spec.ts:6:8
[chromium] › specs/swap/swap.spec.ts:18:7 › Swaps › that it shows correct swap review details: tests/specs/swap/swap.spec.ts#L6
2) [chromium] › specs/swap/swap.spec.ts:18:7 › Swaps › that it shows correct swap review details ─ Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. 4 | 5 | test.describe('Swaps', () => { > 6 | test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, swapPage }) => { | ^ 7 | await globalPage.setupAndUseApiCalls(extensionId); 8 | await onboardingPage.signInWithTestAccount(extensionId); 9 | await homePage.enableTestMode(); at /home/runner/work/extension/extension/tests/specs/swap/swap.spec.ts:6:8
[chromium] › specs/swap/swap.spec.ts:18:7 › Swaps › that it shows correct swap review details: tests/specs/swap/swap.spec.ts#L6
2) [chromium] › specs/swap/swap.spec.ts:18:7 › Swaps › that it shows correct swap review details ─ Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. 4 | 5 | test.describe('Swaps', () => { > 6 | test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, swapPage }) => { | ^ 7 | await globalPage.setupAndUseApiCalls(extensionId); 8 | await onboardingPage.signInWithTestAccount(extensionId); 9 | await homePage.enableTestMode(); at /home/runner/work/extension/extension/tests/specs/swap/swap.spec.ts:6:8
[chromium] › specs/swap/swap.spec.ts:39:7 › Swaps › that the swap is broadcast: tests/specs/swap/swap.spec.ts#L6
3) [chromium] › specs/swap/swap.spec.ts:39:7 › Swaps › that the swap is broadcast ──────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. 4 | 5 | test.describe('Swaps', () => { > 6 | test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, swapPage }) => { | ^ 7 | await globalPage.setupAndUseApiCalls(extensionId); 8 | await onboardingPage.signInWithTestAccount(extensionId); 9 | await homePage.enableTestMode(); at /home/runner/work/extension/extension/tests/specs/swap/swap.spec.ts:6:8
[chromium] › specs/swap/swap.spec.ts:39:7 › Swaps › that the swap is broadcast: tests/specs/swap/swap.spec.ts#L6
3) [chromium] › specs/swap/swap.spec.ts:39:7 › Swaps › that the swap is broadcast ──────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. 4 | 5 | test.describe('Swaps', () => { > 6 | test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, swapPage }) => { | ^ 7 | await globalPage.setupAndUseApiCalls(extensionId); 8 | await onboardingPage.signInWithTestAccount(extensionId); 9 | await homePage.enableTestMode(); at /home/runner/work/extension/extension/tests/specs/swap/swap.spec.ts:6:8
[chromium] › specs/swap/swap.spec.ts:39:7 › Swaps › that the swap is broadcast: tests/specs/swap/swap.spec.ts#L6
3) [chromium] › specs/swap/swap.spec.ts:39:7 › Swaps › that the swap is broadcast ──────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. 4 | 5 | test.describe('Swaps', () => { > 6 | test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, swapPage }) => { | ^ 7 | await globalPage.setupAndUseApiCalls(extensionId); 8 | await onboardingPage.signInWithTestAccount(extensionId); 9 | await homePage.enableTestMode(); at /home/runner/work/extension/extension/tests/specs/swap/swap.spec.ts:6:8
Shard 8 of 8
Process completed with exit code 1.
Merge reports
Action failed with "The process '/usr/bin/git' failed with exit code 1"
🎭 Playwright Run Summary
7 passed (59.2s)
🎭 Playwright Run Summary
1 flaky [chromium] › specs/fund/fund.spec.ts:12:7 › Buy tokens test › should redirect to provider URL while funding STX 3 skipped 4 passed (1.1m)
🎭 Playwright Run Summary
8 passed (1.3m)
🎭 Playwright Run Summary
1 flaky [chromium] › specs/send/send-btc.spec.ts:21:9 › send btc › btc send form › that it shows preview of tx details to be confirmed 6 passed (1.8m)
🎭 Playwright Run Summary
2 flaky [chromium] › specs/send/send-btc.spec.ts:31:9 › send btc › btc send form › that recipient input is trimmed correctly [chromium] › specs/send/send-btc.spec.ts:43:9 › send btc › btc send form › that asset value and recipient on preview match input 13 passed (2.0m)
🎭 Playwright Run Summary
2 flaky [chromium] › specs/profile/profile.spec.ts:37:7 › Profile updating › should show profile details [chromium] › specs/profile/profile.spec.ts:56:7 › Profile updating › should send a signed profile token to gaia 7 passed (3.1m)
🎭 Playwright Run Summary
3 failed [chromium] › specs/swap/swap.spec.ts:14:7 › Swaps › that it defaults to swapping STX ─────────── [chromium] › specs/swap/swap.spec.ts:18:7 › Swaps › that it shows correct swap review details ── [chromium] › specs/swap/swap.spec.ts:39:7 › Swaps › that the swap is broadcast ───────────────── 4 passed (5.4m)

Artifacts

Produced during runtime
Name Size
all-blob-reports Expired
56.9 MB