mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-17 22:13:08 +00:00
fix: E2E test stability and UI performance improvements (#823)
This commit is contained in:
@@ -28,6 +28,7 @@ test.describe('Feature Deep Link', () => {
|
||||
let projectPath: string;
|
||||
let projectName: string;
|
||||
|
||||
// eslint-disable-next-line no-empty-pattern
|
||||
test.beforeEach(async ({}, testInfo) => {
|
||||
projectName = `test-project-${testInfo.workerIndex}-${Date.now()}`;
|
||||
projectPath = path.join(TEST_TEMP_DIR, projectName);
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
waitForNetworkIdle,
|
||||
authenticateForTests,
|
||||
handleLoginScreenIfPresent,
|
||||
dismissSandboxWarningIfVisible,
|
||||
} from '../../utils';
|
||||
|
||||
const TEST_TEMP_DIR = createTempDirPath('responsive-modal-test');
|
||||
@@ -100,6 +101,9 @@ test.describe('AgentOutputModal Responsive Behavior', () => {
|
||||
|
||||
await expect(page.locator('[data-testid="board-view"]')).toBeVisible({ timeout: 10000 });
|
||||
|
||||
// Dismiss sandbox warning dialog if it appears (blocks pointer events)
|
||||
await dismissSandboxWarningIfVisible(page);
|
||||
|
||||
// Wait for the verified feature card to appear
|
||||
const featureCard = page.locator(`[data-testid="kanban-card-${featureId}"]`);
|
||||
await expect(featureCard).toBeVisible({ timeout: 10000 });
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
waitForNetworkIdle,
|
||||
authenticateForTests,
|
||||
handleLoginScreenIfPresent,
|
||||
dismissSandboxWarningIfVisible,
|
||||
} from '../utils';
|
||||
|
||||
/**
|
||||
@@ -109,6 +110,9 @@ test.describe('Success log output contrast', () => {
|
||||
|
||||
await expect(page.locator('[data-testid="board-view"]')).toBeVisible({ timeout: 10000 });
|
||||
|
||||
// Dismiss sandbox warning dialog if it appears (blocks pointer events)
|
||||
await dismissSandboxWarningIfVisible(page);
|
||||
|
||||
// Wait for the verified feature card to appear
|
||||
const featureCard = page.locator(`[data-testid="kanban-card-${featureId}"]`);
|
||||
await expect(featureCard).toBeVisible({ timeout: 10000 });
|
||||
|
||||
Reference in New Issue
Block a user