From 0adbfc0e940f13b81089e010b128d87fcc0de282 Mon Sep 17 00:00:00 2001 From: Fares Osman <43153226+fiosman@users.noreply.github.com> Date: Mon, 8 Jun 2026 13:32:04 -0400 Subject: [PATCH] test: attempt to fix test --- .../playwright/pages/preferences/data-tab.ts | 4 ++-- packages/insomnia-smoke-test/tests/smoke/export.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/insomnia-smoke-test/playwright/pages/preferences/data-tab.ts b/packages/insomnia-smoke-test/playwright/pages/preferences/data-tab.ts index d800c9ca00..8ad498c9c5 100644 --- a/packages/insomnia-smoke-test/playwright/pages/preferences/data-tab.ts +++ b/packages/insomnia-smoke-test/playwright/pages/preferences/data-tab.ts @@ -31,7 +31,7 @@ export class PreferencesDataTab extends BasePage { * Clicks the "Export project" button. */ async exportProjectData(dirPath: string, format: 'yaml' | 'har'): Promise { - 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 { 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(); } diff --git a/packages/insomnia-smoke-test/tests/smoke/export.test.ts b/packages/insomnia-smoke-test/tests/smoke/export.test.ts index daa40d1836..403ec90a27 100644 --- a/packages/insomnia-smoke-test/tests/smoke/export.test.ts +++ b/packages/insomnia-smoke-test/tests/smoke/export.test.ts @@ -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',