1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-23 16:17:35 +00:00
bramw_baserow/e2e-tests/pages/builder/builderElementModal.ts
2024-11-14 12:30:42 +00:00

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();
}
}