mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-23 16:17:35 +00:00
15 lines
410 B
TypeScript
15 lines
410 B
TypeScript
import { BaserowPage } from "../baserowPage";
|
|
import { expect } from "@playwright/test";
|
|
|
|
export class BuilderElementModal extends BaserowPage {
|
|
async addElementByName(elementName) {
|
|
await this.page
|
|
.locator(".modal__box")
|
|
.getByText(elementName, { exact: true })
|
|
.click();
|
|
await expect(
|
|
this.page.locator(".modal__box").getByText("Add new element")
|
|
).toBeHidden();
|
|
}
|
|
}
|