-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSplitModal.ts
More file actions
36 lines (26 loc) · 727 Bytes
/
SplitModal.ts
File metadata and controls
36 lines (26 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { expect, Page } from '@playwright/test';
import BasePageModel from '@/pages/BasePageModel';
import SplitModalTable from './SplitModalTable';
class SplitModal extends BasePageModel {
table: SplitModalTable;
constructor(page: Page) {
super(page);
this.table = new SplitModalTable(page);
}
get modal() {
return this.page.getByTestId('split-line-modal');
}
async isLoaded() {
await expect(this.modal).toBeVisible();
}
get saveButton() {
return this.modal.getByTestId('save-button');
}
get cancelButton() {
return this.modal.getByTestId('cancel-button');
}
get addLineButton() {
return this.modal.getByTestId('add-line-button');
}
}
export default SplitModal;