mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-23 20:55:41 +00:00
chore: add some timeouts
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user