mirror of
https://github.com/Kong/insomnia.git
synced 2026-08-04 03:42:20 -04:00
test: attempt to fix test
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user