init commit
This commit is contained in:
14
tests/weather-test.spec.ts
Normal file
14
tests/weather-test.spec.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('test', async ({ page }) => {
|
||||
await page.goto('https://test.crate.zip/');
|
||||
await page.getByRole('button').click();
|
||||
await page.getByRole('link', { name: 'View Weather History' }).click();
|
||||
await page.getByRole('link', { name: 'Back to Home' }).click();
|
||||
const page1Promise = page.waitForEvent('popup');
|
||||
await page.getByRole('link', { name: 'More Details' }).click();
|
||||
const page1 = await page1Promise;
|
||||
const page2Promise = page.waitForEvent('popup');
|
||||
await page.getByRole('link', { name: 'View Report' }).click();
|
||||
const page2 = await page2Promise;
|
||||
});
|
Reference in New Issue
Block a user