test: attempt to fix test

This commit is contained in:
Fares Osman
2026-06-08 13:32:04 -04:00
parent 569ae05e06
commit 0adbfc0e94
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ export class PreferencesDataTab extends BasePage {
* Clicks the "Export project" button.
*/
async exportProjectData(dirPath: string, format: 'yaml' | 'har'): Promise<void> {
await this.page.getByTestId('export-project-button').click();
await this.page.getByTestId('export-project-button').click({ timeout: 90_000 });
if (format === 'yaml') {
await mockOpenDialogForDirectory(this.app, dirPath);
} else if (format === 'har') {
@@ -45,7 +45,7 @@ export class PreferencesDataTab extends BasePage {
*/
async exportAllData(dirPath: string): Promise<void> {
await mockOpenDialogForDirectory(this.app, dirPath);
await this.page.getByRole('button', { name: /Export all data/ }).click();
await this.page.getByRole('button', { name: /Export all data/ }).click({ timeout: 90_000 });
await this.waitForExportCompleteAlert();
}

View File

@@ -13,7 +13,7 @@ import {
} from '../../playwright/utils';
test.describe('Export', () => {
test.slow();
test.slow(process.platform === 'darwin' || process.platform === 'win32', 'Slow app start on these platforms');
const FIXTURE_FILES = [
'export/Collection-A-wrk_829522b5e8dc4f37b7529db150315cd4.yaml',