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: change swap test timeout time #6071

Merged
merged 1 commit into from
Jan 17, 2025
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
4 changes: 3 additions & 1 deletion tests/specs/swap/swap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { test } from '../../fixtures/fixtures';

test.describe('Swaps', () => {
test.beforeEach(async ({ extensionId, globalPage, homePage, onboardingPage, swapPage }) => {
test.setTimeout(60_000);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nice robust fix 😅


await globalPage.setupAndUseApiCalls(extensionId);
await mockStacksBroadcastTransaction(globalPage.page);
await onboardingPage.signInWithTestAccount(extensionId);
Expand All @@ -19,7 +21,7 @@ test.describe('Swaps', () => {
test('that it shows swap review details correctly', async ({ swapPage }) => {
await swapPage.inputSwapAmountBase();
await swapPage.selectAssetToReceive();
await swapPage.swapReviewBtn.click({ delay: 2000 });
await swapPage.swapReviewBtn.click();

const swapProtocol = await swapPage.swapDetailsProtocol.innerText();
test.expect(swapProtocol).toContain('Bitflow');
Expand Down
Loading