Skip to content

Commit

Permalink
fix(tooling-ci): Improve Explorer e2e tests reliability with 'waitFor…
Browse files Browse the repository at this point in the history
…Transaction' (#3298)

Co-authored-by: Begoña Álvarez de la Cruz <balvarez@boxfish.studio>
  • Loading branch information
msarcev and begonaalvarezd authored Oct 15, 2024
1 parent 60576b3 commit ed67ba7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/explorer/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
testDir: './tests',
/* Maximum time one test can run for. */
timeout: 30 * 1000,
timeout: 60 * 1000,
expect: {
/**
* Maximum time expect() should wait for the condition to be met.
Expand Down
1 change: 1 addition & 0 deletions apps/explorer/tests/utils/localnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export async function split_coin(address: string) {
showEffects: true,
showEvents: true,
},
requestType: 'WaitForLocalExecution',
});

return result;
Expand Down
4 changes: 1 addition & 3 deletions sdk/typescript/test/e2e/utils/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,9 @@ export async function payIota(
showEffects: true,
showObjectChanges: true,
},
requestType: 'WaitForLocalExecution',
});

await client.waitForTransaction({
digest: txn.digest,
});
expect(txn.effects?.status.status).toEqual('success');
return txn;
}
Expand Down

0 comments on commit ed67ba7

Please sign in to comment.