@@ -48,12 +48,12 @@ export function DocTableProvider({ getService, getPageObjects }: FtrProviderCont
4848
4949 public async getBodyRows ( ) : Promise < WebElementWrapper [ ] > {
5050 const table = await this . getTable ( ) ;
51- return await table . findAll ( '~docTableRow' ) ;
51+ return await table . findAllByTestSubject ( '~docTableRow' ) ;
5252 }
5353
5454 public async getAnchorRow ( ) : Promise < WebElementWrapper > {
5555 const table = await this . getTable ( ) ;
56- return await table . find ( '~docTableAnchorRow' ) ;
56+ return await table . findByTestSubject ( '~docTableAnchorRow' ) ;
5757 }
5858
5959 public async getRow ( options : SelectOptions ) : Promise < WebElementWrapper > {
@@ -73,7 +73,7 @@ export function DocTableProvider({ getService, getPageObjects }: FtrProviderCont
7373 options : SelectOptions = { isAnchorRow : false , rowIndex : 0 }
7474 ) : Promise < void > {
7575 const row = await this . getRow ( options ) ;
76- const toggle = await row . find ( '~docTableExpandToggleColumn' ) ;
76+ const toggle = await row . findByTestSubject ( '~docTableExpandToggleColumn' ) ;
7777 await toggle . click ( ) ;
7878 }
7979
@@ -90,7 +90,7 @@ export function DocTableProvider({ getService, getPageObjects }: FtrProviderCont
9090 const detailsRow = options . isAnchorRow
9191 ? await this . getAnchorDetailsRow ( )
9292 : ( await this . getDetailsRows ( ) ) [ options . rowIndex ] ;
93- return await detailsRow . findAll ( '~docTableRowAction' ) ;
93+ return await detailsRow . findAllByTestSubject ( '~docTableRowAction' ) ;
9494 }
9595
9696 public async getFields ( options : { isAnchorRow : boolean } = { isAnchorRow : false } ) {
@@ -122,13 +122,13 @@ export function DocTableProvider({ getService, getPageObjects }: FtrProviderCont
122122 detailsRow : WebElementWrapper ,
123123 fieldName : WebElementWrapper
124124 ) : Promise < WebElementWrapper > {
125- return await detailsRow . find ( `~tableDocViewRow-${ fieldName } ` ) ;
125+ return await detailsRow . findByTestSubject ( `~tableDocViewRow-${ fieldName } ` ) ;
126126 }
127127
128128 public async getAddInclusiveFilterButton (
129129 tableDocViewRow : WebElementWrapper
130130 ) : Promise < WebElementWrapper > {
131- return await tableDocViewRow . find ( `~addInclusiveFilterButton` ) ;
131+ return await tableDocViewRow . findByTestSubject ( `~addInclusiveFilterButton` ) ;
132132 }
133133
134134 public async addInclusiveFilter (
@@ -144,7 +144,7 @@ export function DocTableProvider({ getService, getPageObjects }: FtrProviderCont
144144 public async getAddExistsFilterButton (
145145 tableDocViewRow : WebElementWrapper
146146 ) : Promise < WebElementWrapper > {
147- return await tableDocViewRow . find ( `~addExistsFilterButton` ) ;
147+ return await tableDocViewRow . findByTestSubject ( `~addExistsFilterButton` ) ;
148148 }
149149
150150 public async addExistsFilter (
@@ -169,7 +169,7 @@ export function DocTableProvider({ getService, getPageObjects }: FtrProviderCont
169169 const detailsRow = await row . findByXpath (
170170 './following-sibling::*[@data-test-subj="docTableDetailsRow"]'
171171 ) ;
172- return detailsRow . find ( '~docViewer' ) ;
172+ return detailsRow . findByTestSubject ( '~docViewer' ) ;
173173 } ) ;
174174 }
175175 }
0 commit comments