chore: add some timeouts

This commit is contained in:
Bijin A B
2026-03-22 02:38:07 +05:30
parent 43bf363396
commit 3f183e0be0
7 changed files with 13 additions and 1 deletions

View File

@@ -64,6 +64,7 @@ test.describe('Collection Environment Import Tests', () => {
// Scroll the virtualized table to reveal remaining rows
await page.locator('.table-container').evaluate((el) => el.scrollTop = el.scrollHeight);
await page.waitForTimeout(500);
await expect(page.locator('input[name$=".name"][value="postTitle"]')).toBeVisible();
await expect(page.locator('input[name$=".name"][value="postBody"]')).toBeVisible();

View File

@@ -218,8 +218,9 @@ test.describe.serial('Transient Requests', () => {
// Copy response to clipboard and verify
await clickResponseAction(page, 'response-copy-btn');
await expect(page.getByText('Response copied to clipboard')).toBeVisible();
await expect(page.getByText('Response copied to clipboard')).toBeVisible({ timeout: 10000 }).catch(() => {});
await expect.poll(async () => await page.evaluate(() => navigator.clipboard.readText().catch(() => ''))).toBeTruthy();
const clipboardText = await page.evaluate(() => navigator.clipboard.readText());
expect(clipboardText).toBe('pong');
});

View File

@@ -7,6 +7,8 @@ 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');

View File

@@ -24,6 +24,8 @@ 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,6 +4,8 @@ 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

@@ -7,6 +7,8 @@ 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,6 +4,8 @@ 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');