adds tests
This commit is contained in:
@@ -13,6 +13,15 @@ export class IndexPage {
|
||||
await this.page.goto('/');
|
||||
}
|
||||
|
||||
async search() {
|
||||
await this.page.locator('input[name="q"]').fill('Munich');
|
||||
await this.page.waitForResponse('**/api/v1/search/multi');
|
||||
await this.page.locator('.menu-item').first().click();
|
||||
await this.page.waitForURL('/map?lat=48.13743&lon=11.57549');
|
||||
|
||||
}
|
||||
|
||||
|
||||
async hasNoError() {
|
||||
await expect(this.error).toHaveCount(0);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ export class ListsPage {
|
||||
|
||||
constructor(page: Page) {
|
||||
this.page = page;
|
||||
this.createListButton = page.locator("#create-list-button");
|
||||
this.createListButton = page.locator("#create-list");
|
||||
this.listModal = page.locator("#list-modal");
|
||||
|
||||
this.listModalAvatar = this.listModal.locator('input[name="avatar"]')
|
||||
|
||||
Reference in New Issue
Block a user