File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments