Skip to content

Commit 0a011d5

Browse files
Copilotrenemadsen
andcommitted
Refactor SearchableLists page object to extend PageWithNavbarPage
Co-authored-by: renemadsen <[email protected]>
1 parent 2a08ec8 commit 0a011d5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

eform-client/cypress/e2e/SearchableLists.page.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
import { Navbar } from './Navbar.page';
1+
import { PageWithNavbarPage } from './PageWithNavbar.page';
22

3-
export class SearchableListsPage {
4-
private navbar = new Navbar();
3+
export class SearchableListsPage extends PageWithNavbarPage {
4+
constructor() {
5+
super();
6+
}
57

68
// Navigation
79
public goToEntitySearchPage() {
8-
this.navbar.goToEntitySearch();
10+
this.Navbar.goToEntitySearch();
911
}
1012

1113
// Element selectors

0 commit comments

Comments
 (0)