@@ -20,8 +20,6 @@ export class HomePage extends BasePage {
2020 readonly helpSection : Locator ;
2121 readonly communitySection : Locator ;
2222 readonly createNewNoteButton : Locator ;
23- readonly importNoteButton : Locator ;
24- readonly searchInput : Locator ;
2523 readonly filterInput : Locator ;
2624 readonly zeppelinLogo : Locator ;
2725 readonly anonymousUserIndicator : Locator ;
@@ -31,7 +29,6 @@ export class HomePage extends BasePage {
3129 readonly helpCommunityColumn : Locator ;
3230 readonly welcomeDescription : Locator ;
3331 readonly refreshNoteButton : Locator ;
34- readonly refreshIcon : Locator ;
3532 readonly notebookList : Locator ;
3633 readonly notebookHeading : Locator ;
3734 readonly helpHeading : Locator ;
@@ -70,8 +67,6 @@ export class HomePage extends BasePage {
7067 this . helpSection = page . locator ( 'text=Help' ) . first ( ) ;
7168 this . communitySection = page . locator ( 'text=Community' ) . first ( ) ;
7269 this . createNewNoteButton = page . getByText ( 'Create new Note' , { exact : true } ) . first ( ) ;
73- this . importNoteButton = page . locator ( 'text=Import Note' ) ;
74- this . searchInput = page . locator ( 'textbox' , { hasText : 'Search' } ) ;
7570 this . filterInput = page . locator ( 'input[placeholder*="Filter"]' ) ;
7671 this . zeppelinLogo = page . locator ( 'text=Zeppelin' ) . first ( ) ;
7772 this . anonymousUserIndicator = page . locator ( 'text=anonymous' ) ;
@@ -81,7 +76,6 @@ export class HomePage extends BasePage {
8176 this . helpCommunityColumn = page . locator ( '[nz-col]' ) . last ( ) ;
8277 this . welcomeDescription = page . locator ( '.welcome' ) . getByText ( 'Zeppelin is web-based notebook' ) ;
8378 this . refreshNoteButton = page . locator ( 'a.refresh-note' ) ;
84- this . refreshIcon = page . locator ( 'a.refresh-note i[nz-icon]' ) ;
8579 this . notebookList = page . locator ( 'zeppelin-node-list' ) ;
8680 this . notebookHeading = this . notebookColumn . locator ( 'h3' ) ;
8781 this . helpHeading = page . locator ( 'h3' ) . filter ( { hasText : 'Help' } ) ;
@@ -153,18 +147,10 @@ export class HomePage extends BasePage {
153147 await this . zeppelinLogo . click ( ) ;
154148 }
155149
156- async getCurrentURL ( ) : Promise < string > {
157- return this . page . url ( ) ;
158- }
159-
160150 getCurrentPath ( ) : string {
161151 return getCurrentPath ( this . page ) ;
162152 }
163153
164- async getPageTitle ( ) : Promise < string > {
165- return this . page . title ( ) ;
166- }
167-
168154 async getWelcomeHeadingText ( ) : Promise < string > {
169155 const text = await this . welcomeHeading . textContent ( ) ;
170156 return text || '' ;
@@ -224,12 +210,4 @@ export class HomePage extends BasePage {
224210 }
225211 return true ;
226212 }
227-
228- async isWelcomeSectionVisible ( ) : Promise < boolean > {
229- return this . welcomeSection . isVisible ( ) ;
230- }
231-
232- async isMoreInfoGridVisible ( ) : Promise < boolean > {
233- return this . moreInfoGrid . isVisible ( ) ;
234- }
235213}
0 commit comments