Skip to content

Commit c6bcc15

Browse files
authored
test: disable download for webkit (#1969)
- Adds #1966 - Disables the download check for Webkit
1 parent 07e5a26 commit c6bcc15

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

tests/table.spec.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ test.describe('tests simple table operations', () => {
7373
await expect(page.locator('.table-sidebar')).toHaveCount(1);
7474
});
7575

76-
test('can download table successfully', async ({ page }) => {
76+
test('can download table successfully', async ({ page, browserName }) => {
7777
// open Download CSV panel
7878
await page.locator('data-testid=menu-item-Download CSV').click();
7979

@@ -91,9 +91,14 @@ test.describe('tests simple table operations', () => {
9191
await page.keyboard.type('sin-and-cos.csv');
9292
await expect(fileNameInputField).toHaveValue('sin-and-cos.csv');
9393

94-
const downloadPromise = page.waitForEvent('download');
95-
downloadButton.click();
96-
await downloadPromise;
94+
// webkit is flaky
95+
if (browserName === 'webkit') {
96+
downloadButton.click();
97+
} else {
98+
const downloadPromise = page.waitForEvent('download');
99+
downloadButton.click();
100+
await downloadPromise;
101+
}
97102

98103
// Wait for download to complete
99104
await expect(

0 commit comments

Comments
 (0)