We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00db912 commit b58104dCopy full SHA for b58104d
1 file changed
src/components/NewAlertPopup.ts
@@ -0,0 +1,23 @@
1
+import { Page } from '@playwright/test';
2
+
3
+import BasePageModel from '@/pages/BasePageModel';
4
5
+class NewAlertPopup extends BasePageModel {
6
+ constructor(page: Page) {
7
+ super(page);
8
+ }
9
10
+ get tableDialog() {
11
+ return this.page.getByTestId('modal-with-table');
12
13
14
+ get yesButton() {
15
+ return this.tableDialog.getByRole('button', { name: 'Yes' });
16
17
18
+ get noButton() {
19
+ return this.tableDialog.getByRole('button', { name: 'No' });
20
21
+}
22
23
+export default NewAlertPopup;
0 commit comments