Skip to content

Commit

Permalink
Improve timing in e2e Export test (#2967)
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz authored Jan 16, 2024
1 parent 3e81ea9 commit 3ddce27
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/zui-player/tests/export.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ test.describe('Export tests', () => {
const app = new TestApp('Export tests');

test.beforeAll(async () => {

// Increase timeout due to observed long load times on test data in CI.
// See https://github.com/brimdata/zui/pull/2967
test.setTimeout(60000);

await app.init();
await app.createPool([getPath('sample.zeektsv')]);
await app.click('button', 'Query Pool');
Expand All @@ -40,12 +45,14 @@ test.describe('Export tests', () => {
dialog.showSaveDialog = () =>
Promise.resolve({ canceled: false, filePath });
}, file);
app.click('button', 'Export Results');
await app.click('button', 'Export Results');
await app.attached('dialog');
const dialog = app.mainWin.getByRole('dialog');
await dialog
.getByRole('radio', { name: `${label}`, exact: true })
.click();
await dialog.getByRole('button').filter({ hasText: 'Export' }).click();
await app.detached('dialog');
await app.mainWin
.getByText(new RegExp('Export Completed: .*results\\.' + label))
.waitFor();
Expand Down

0 comments on commit 3ddce27

Please sign in to comment.