chore: remove timeouts

This commit is contained in:
Bijin A B
2026-05-11 19:58:08 +05:30
parent fe4a7b50dd
commit 38bb185796
5 changed files with 4 additions and 17 deletions

View File

@@ -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 () => {

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');