Skip to content

Commit

Permalink
⚗️Increment timeout in navigation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPoblete committed Sep 11, 2024
1 parent 8ce279f commit 561c355
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build app
run: yarn build

deploy-app:
test-app:
env:
NEXT_PUBLIC_BACKEND_URL: ${{vars.NEXT_PUBLIC_BACKEND_URL}}
NEXT_PUBLIC_SOROSWAP_BACKEND_API_KEY: ${{secrets.NEXT_PUBLIC_SOROSWAP_BACKEND_API_KEY}}
Expand Down
20 changes: 10 additions & 10 deletions cypress/e2e/flows.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,41 +236,41 @@ describe('Navigation flow', () => {
it('should navigate to balances', () => {
cy.visit('/');
cy.get('[data-testid="navbar__container"]').click();
cy.wait(500);
cy.contains('Balance').click();
cy.wait(1500);
cy.contains('Balance').click();
cy.wait(3000);
cy.contains("Your token's balance:");
});
it('should navigate to swap', () => {
cy.visit('/bridge');
cy.get('[data-testid="navbar__container"]').click();
cy.wait(500);
cy.contains('Swap').click();
cy.wait(1500);
cy.contains('Swap').click();
cy.wait(3000);
cy.contains('You sell');
});
it('should navigate to liquidity', () => {
cy.visit('/');
cy.get('[data-testid="navbar__container"]').click();
cy.wait(500);
cy.contains('Liquidity').click();
cy.wait(1500);
cy.contains('Liquidity').click();
cy.wait(3000);
cy.contains('List of your liquidity positions');
});
it('should navigate to bridge', () => {
cy.visit('/');
cy.get('[data-testid="navbar__container"]').click();
cy.wait(500);
cy.contains('Bridge').click();
cy.wait(1500);
cy.contains('Bridge').click();
cy.wait(3000);
cy.contains('Disclaimer');
});
it('should navigate to info', () => {
cy.visit('/');
cy.get('[data-testid="navbar__container"]').click();
cy.wait(500);
cy.contains('Info').click();
cy.wait(1500);
cy.contains('Info').click();
cy.wait(3000);
cy.url().should('match', /https:\/\/info\.soroswap\.finance\//);
});
});

0 comments on commit 561c355

Please sign in to comment.