fix(ui): 完善界面交互与开发配置
This commit is contained in:
@@ -175,8 +175,13 @@ test('config isolates HTML, JUnit and traces and supports extended projects', ()
|
||||
},
|
||||
),
|
||||
);
|
||||
const base = read({}),
|
||||
ci = read({ CI: '1', PW_EXTENDED_LAYOUT: '1', PW_WORKERS: '1' });
|
||||
const base = read({ PW_TARGET: 'local-dev' }),
|
||||
ci = read({
|
||||
CI: '1',
|
||||
PW_EXTENDED_LAYOUT: '1',
|
||||
PW_WORKERS: '1',
|
||||
PW_TARGET: 'local-dev',
|
||||
});
|
||||
assert.equal(base.projects.length, 2);
|
||||
assert.equal(ci.projects.length, 8);
|
||||
assert.equal(base.use.headless, false);
|
||||
@@ -192,6 +197,11 @@ test('config isolates HTML, JUnit and traces and supports extended projects', ()
|
||||
);
|
||||
assert.ok(base.use.launchOptions.args.includes('--hide-scrollbars'));
|
||||
assert.ok(base.webServer.command.includes('--strictPort'));
|
||||
assert.equal(
|
||||
read({ PW_TARGET: 'remote', PW_BASE_URL: 'http://127.0.0.1:5174/' })
|
||||
.webServer,
|
||||
undefined,
|
||||
);
|
||||
assert.deepEqual(read({}, ['--list']).reporter, [['list']]);
|
||||
assert.throws(
|
||||
() => read({ CI: '1' }, ['--headed']),
|
||||
|
||||
Reference in New Issue
Block a user