Skip to content

Commit 8746724

Browse files
committed
Refactor scopedLocator method for simplified selector handling
1 parent c9b9c1c commit 8746724

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

e2e/logic/POM/codeGraph.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ export default class CodeGraph extends BasePage {
2121
}
2222

2323
private get scopedLocator(): (selector: string) => Locator {
24-
return (selector: string) => {
25-
const scoped = selector.startsWith("//") ? `.${selector}` : selector;
26-
return this.container.locator(scoped);
27-
};
24+
return (selector: string) => this.container.locator(selector);
2825
}
2926

3027
/* NavBar Locators*/

0 commit comments

Comments
 (0)