midscene/packages/cli/tests/bridge.test.ts
yuyutaotao 649aeceb43
feat: enable search area for locate (#473)
* 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>
2025-03-24 09:50:27 +08:00

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);
});
},
);