mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-07-18 22:43:04 +00:00
28 lines
558 B
TypeScript
28 lines
558 B
TypeScript
![]() |
import { buildPlans } from '@/common/plan-builder';
|
||
|
import { beforeEach, describe, expect, it } from 'vitest';
|
||
|
|
||
|
describe('build plans', () => {
|
||
|
it('tap', async () => {
|
||
|
const result = buildPlans(
|
||
|
'Tap',
|
||
|
{
|
||
|
prompt: 'OK button',
|
||
|
},
|
||
|
null,
|
||
|
);
|
||
|
expect(result).toMatchSnapshot();
|
||
|
});
|
||
|
|
||
|
it('hover', async () => {
|
||
|
const result = await buildPlans(
|
||
|
'Hover',
|
||
|
{
|
||
|
prompt: 'OK button',
|
||
|
searchArea: 'the cookie prompt',
|
||
|
},
|
||
|
null,
|
||
|
);
|
||
|
expect(result).toMatchSnapshot();
|
||
|
});
|
||
|
});
|