16 lines
409 B
TypeScript
16 lines
409 B
TypeScript
import { expect, test } from '@playwright/test';
|
|
import { IndexPage } from '../../pages/index_page';
|
|
|
|
test('index page does not show error', async ({ page }) => {
|
|
const indexPage = new IndexPage(page);
|
|
await indexPage.goto()
|
|
await indexPage.hasNoError()
|
|
});
|
|
|
|
test('location search works', async ({ page }) => {
|
|
const indexPage = new IndexPage(page);
|
|
await indexPage.goto()
|
|
await indexPage.search()
|
|
});
|
|
|