Skip to content

Commit

Permalink
Merge branch 'main' into maintenance-e2e-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wojteknowacki committed Jan 8, 2024
2 parents b043cc2 + b841e52 commit bc08dd2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions playwright/pages/dialogs/deleteCategoriesDialog.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Page } from "@playwright/test";

export class DeleteCategoriesDialog {
readonly page: Page;

constructor(page: Page, readonly deleteButton = page.getByTestId("submit")) {
this.page = page;
}

async clickDeleteButton() {
await this.deleteButton.first().click();
await this.deleteButton.waitFor({ state: "hidden" });
}
}

0 comments on commit bc08dd2

Please sign in to comment.