Skip to content

Commit b58104d

Browse files
committed
add new class for newly added table modal
1 parent 00db912 commit b58104d

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

src/components/NewAlertPopup.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)