17 lines
466 B
TypeScript
Raw Normal View History

import { expect } from 'playwright/test';
import { test } from './fixture';
test.beforeEach(async ({ page }) => {
await page.goto('https://cn.bing.com');
});
const CACHE_TIME_OUT = process.env.MIDSCENE_CACHE;
test('test open new tab', async ({ page, ai, aiAssert, aiQuery }) => {
if (CACHE_TIME_OUT) {
test.setTimeout(200 * 1000);
}
await ai('search "midscene github" and open the github page');
await aiAssert('the page is "midscene github"');
});