mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-07-07 09:01:38 +00:00

* feat: enable search area for locate * fix: update evaluation * fix: build error * fix: ci * fix: locator * feat: show searchArea in report * chore: add yaml support for aiTap * feat: update status tip * fix: #473 (#484) * chore: optimize unit test list --------- Co-authored-by: zhouxiao.shaw <zhouxiao.shaw@bytedance.com>
23 lines
571 B
TypeScript
23 lines
571 B
TypeScript
import { execa } from 'execa';
|
|
import { describe, test } from 'vitest';
|
|
const cliBin = require.resolve('../bin/midscene');
|
|
|
|
const describeIf = process.env.BRIDGE_MODE ? describe : describe.skip;
|
|
|
|
describeIf(
|
|
'bridge',
|
|
{
|
|
timeout: 1000 * 60 * 3,
|
|
},
|
|
() => {
|
|
test('open new tab', async () => {
|
|
// const params = ['./tests/midscene_scripts/online/bing.yaml', '--keep-window'];
|
|
const params = [
|
|
'./tests/midscene_scripts_bridge/new_tab/open-new-tab.yaml',
|
|
'--keep-window',
|
|
];
|
|
await execa(cliBin, params);
|
|
});
|
|
},
|
|
);
|