Skip to content

Commit 4e929a8

Browse files
author
GiCharkviani
committed
PW-DSM-Tissue-request-flow updated root
1 parent 6625761 commit 4e929a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

playwright-e2e/dsm/component/modal.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ export default class Modal {
88
private readonly rootSelector: Locator;
99

1010
constructor(private readonly page: Page, opts: {root?: Locator} = {}) {
11+
const {root} = opts;
1112
this.page = page;
12-
this.rootSelector = this.page.locator('.modal-dialog');
13+
this.rootSelector = root || this.page.locator('.modal-dialog');
1314
}
1415

1516
public toLocator(): Locator {

0 commit comments

Comments
 (0)