adds playwright tests
This commit is contained in:
19
web/tests/playwright/pages/index_page.ts
Normal file
19
web/tests/playwright/pages/index_page.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { expect, type Locator, type Page } from '@playwright/test';
|
||||
|
||||
export class IndexPage {
|
||||
readonly page: Page;
|
||||
readonly error: Locator;
|
||||
|
||||
constructor(page: Page) {
|
||||
this.page = page;
|
||||
this.error = page.getByText("Internal Error");
|
||||
}
|
||||
|
||||
async goto() {
|
||||
await this.page.goto('/');
|
||||
}
|
||||
|
||||
async hasNoError() {
|
||||
await expect(this.error).toHaveCount(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user