mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-12 18:31:34 +00:00
chore: remove timeouts
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
import yaml from 'js-yaml';
|
||||
import { test, expect } from '../../playwright';
|
||||
import { test, expect, closeElectronApp } from '../../playwright';
|
||||
import { createCollection, waitForReadyPage } from '../utils/page';
|
||||
|
||||
type WorkspaceConfig = { collections?: { name: string }[] };
|
||||
|
||||
test.describe('Collection reorder persistence', () => {
|
||||
test.setTimeout(90000);
|
||||
|
||||
test('reordered collection order persists after app restart', async ({ launchElectronApp, createTmpDir }) => {
|
||||
const userDataPath = await createTmpDir('collection-reorder-persistence');
|
||||
const colAPath = await createTmpDir('col-a');
|
||||
@@ -40,8 +38,7 @@ test.describe('Collection reorder persistence', () => {
|
||||
});
|
||||
|
||||
await test.step('Close app', async () => {
|
||||
await app.context().close();
|
||||
await app.close();
|
||||
await closeElectronApp(app);
|
||||
});
|
||||
|
||||
await test.step('Restart app and verify order persisted', async () => {
|
||||
@@ -52,8 +49,7 @@ test.describe('Collection reorder persistence', () => {
|
||||
await expect(rows2.nth(0)).toContainText('ColB');
|
||||
await expect(rows2.nth(1)).toContainText('ColA');
|
||||
|
||||
await app2.context().close();
|
||||
await app2.close();
|
||||
await closeElectronApp(app2);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -76,8 +72,7 @@ test.describe('Collection reorder persistence', () => {
|
||||
});
|
||||
|
||||
await test.step('Close app', async () => {
|
||||
await app.context().close();
|
||||
await app.close();
|
||||
await closeElectronApp(app);
|
||||
});
|
||||
|
||||
await test.step('Verify workspace.yml has ColB before ColA', async () => {
|
||||
|
||||
@@ -24,8 +24,6 @@ function findCreatedWorkspaceDirs(location: string): string[] {
|
||||
}
|
||||
|
||||
test.describe('Create Workspace', () => {
|
||||
test.setTimeout(90000);
|
||||
|
||||
test.describe('Inline Creation Flow', () => {
|
||||
test('should create workspace via inline rename and press Enter', async ({ launchElectronApp, createTmpDir }) => {
|
||||
const wsLocation = await createTmpDir('ws-location-enter');
|
||||
|
||||
@@ -4,8 +4,6 @@ import { test, expect, closeElectronApp } from '../../../playwright';
|
||||
import { waitForReadyPage } from '../../utils/page';
|
||||
|
||||
test.describe('Default Workspace', () => {
|
||||
test.setTimeout(90000);
|
||||
|
||||
test.describe('First Launch', () => {
|
||||
test('should create default workspace with "My Workspace" name on first launch', async ({ launchElectronApp, createTmpDir }) => {
|
||||
const userDataPath = await createTmpDir('default-workspace-first-launch');
|
||||
|
||||
@@ -8,8 +8,6 @@ const env = {
|
||||
};
|
||||
|
||||
test.describe('Default Workspace Migration', () => {
|
||||
test.setTimeout(90000);
|
||||
|
||||
test.describe('Migration from lastOpenedCollections', () => {
|
||||
test('should migrate collections from lastOpenedCollections to new workspace', async ({ launchElectronApp, createTmpDir }) => {
|
||||
const userDataPath = await createTmpDir('default-workspace-migration');
|
||||
|
||||
@@ -4,8 +4,6 @@ import { test, expect, closeElectronApp } from '../../../playwright';
|
||||
import { waitForReadyPage } from '../../utils/page';
|
||||
|
||||
test.describe('Default Workspace Recovery and Backup', () => {
|
||||
test.setTimeout(90000);
|
||||
|
||||
test.describe('Global Environments Backup', () => {
|
||||
test('should create backup file for global environments during migration', async ({ launchElectronApp, createTmpDir }) => {
|
||||
const userDataPath = await createTmpDir('global-env-backup');
|
||||
|
||||
Reference in New Issue
Block a user