mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-07-13 20:11:04 +00:00
27 lines
754 B
TypeScript
27 lines
754 B
TypeScript
![]() |
import { join } from 'node:path';
|
||
|
import { matchYamlFiles } from '@/cli-utils';
|
||
|
import { launchServer } from '@/yaml-runner';
|
||
|
import { execa } from 'execa';
|
||
|
import { describe, expect, test } from 'vitest';
|
||
|
const serverRoot = join(__dirname, 'server_root');
|
||
|
const cliBin = require.resolve('../bin/midscene');
|
||
|
|
||
|
const describeIf = process.env.BRIDGE_MODE ? describe : describe.skip;
|
||
|
|
||
|
describeIf(
|
||
|
'bridge',
|
||
|
{
|
||
|
timeout: 1000 * 60 * 10,
|
||
|
},
|
||
|
() => {
|
||
|
test('open new tab', async () => {
|
||
|
// const params = ['./tests/midscene_scripts/sub/bing.yaml', '--keep-window'];
|
||
|
const params = [
|
||
|
'./tests/midscene_scripts_bridge/new_tab/open-new-tab.yaml',
|
||
|
'--keep-window',
|
||
|
];
|
||
|
await execa(cliBin, params);
|
||
|
});
|
||
|
},
|
||
|
);
|