fix(table): 统一筛选交互并补齐移动视口覆盖
This commit is contained in:
@@ -2,6 +2,7 @@ import { defineConfig } from '@playwright/test';
|
||||
import {
|
||||
browserChannel,
|
||||
contextOptions,
|
||||
defaultProjectViewports,
|
||||
projectViewports,
|
||||
} from './scripts/browser-environment.mjs';
|
||||
import { runtimeOptions } from './scripts/playwright-runtime.mjs';
|
||||
@@ -29,9 +30,7 @@ if (
|
||||
)
|
||||
)
|
||||
throw new Error('CI requires headless non-interactive tests');
|
||||
const viewports = runtime.extended
|
||||
? projectViewports
|
||||
: projectViewports.slice(0, 2);
|
||||
const viewports = runtime.extended ? projectViewports : defaultProjectViewports;
|
||||
|
||||
// UI_VISUAL_OFFSCREEN=0 仅限人工本地可视化调试时临时使用。
|
||||
// Agent、CI、无头/自动化环境禁止设置该值,必须保持默认离屏模式
|
||||
|
||||
Reference in New Issue
Block a user