Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed Mar 11, 2024
1 parent 247cd98 commit 32c8010
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
POLKACHU_USER: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_PASSWORD: ${{ secrets.POLKACHU_PASSWORD }}
NEXT_PUBLIC_EDGE_CONFIG: ${{ secrets.NEXT_PUBLIC_EDGE_CONFIG }}
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' npm run test:e2e
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
8 changes: 4 additions & 4 deletions src/components/RouteDisplay/__test__/make-actions.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ const makeActionsTest = async (_route: RouteArgs) => {

test("make-actions: Cosmoshub ATOM -> Akash AKT", async () => {
await makeActionsTest(cosmosHubAtomToAkashAKT);
});
}, 30000);

test("make-actions: Cosmoshub ATOM to Akash ATOM", async () => {
await makeActionsTest(cosmoshubATOMToAkashATOM);
});
}, 30000);

test("make-actions: Noble USDC to Ethereum USDC", async () => {
await makeActionsTest(nobleUSDCToEthereumUSDC);
});
}, 30000);

test("make-actions: Cosmoshub ATOM to Arbitrum ARB", async () => {
await makeActionsTest(cosmoshubATOMToArbitrumARB);
});
}, 30000);
5 changes: 2 additions & 3 deletions src/components/RouteDisplay/__test__/make-step.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ test("make-step: Noble USDC to Injective INJ", async () => {
wrapper: AllTheProviders,
},
);

await waitFor(() => expect(result.current.isLoading).toBeFalsy(), {
timeout: 10000,
timeout: 30000,
});

actions.forEach((action, i) => {
Expand All @@ -68,4 +67,4 @@ test("make-step: Noble USDC to Injective INJ", async () => {
expect(operationTypeIndex).toBeDefined();
expect(explorerLink).toBeDefined();
});
}, 20000);
}, 60000);

0 comments on commit 32c8010

Please sign in to comment.