@@ -99,7 +99,7 @@ export interface LocatorFactory {
9999 * @return An asynchronous locator function that searches for elements with the given selector,
100100 * and either finds one or throws an error
101101 */
102- requiredLocator ( selector : string ) : AsyncFn < TestElement > ;
102+ locatorForRequired ( selector : string ) : AsyncFn < TestElement > ;
103103
104104 /**
105105 * Creates an asynchronous locator function that can be used to find a `ComponentHarness` for a
@@ -110,7 +110,7 @@ export interface LocatorFactory {
110110 * @return An asynchronous locator function that searches components matching the given harness
111111 * type, and either returns a `ComponentHarness` for the component, or throws an error.
112112 */
113- requiredLocator < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
113+ locatorForRequired < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
114114 AsyncFn < T > ;
115115
116116 /**
@@ -122,7 +122,7 @@ export interface LocatorFactory {
122122 * @return An asynchronous locator function that searches for elements with the given selector,
123123 * and either finds one or returns null.
124124 */
125- optionalLocator ( selector : string ) : AsyncFn < TestElement | null > ;
125+ locatorForOptional ( selector : string ) : AsyncFn < TestElement | null > ;
126126
127127 /**
128128 * Creates an asynchronous locator function that can be used to find a `ComponentHarness` for a
@@ -133,7 +133,7 @@ export interface LocatorFactory {
133133 * @return An asynchronous locator function that searches components matching the given harness
134134 * type, and either returns a `ComponentHarness` for the component, or null if none is found.
135135 */
136- optionalLocator < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
136+ locatorForOptional < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
137137 AsyncFn < T | null > ;
138138
139139 /**
@@ -144,7 +144,7 @@ export interface LocatorFactory {
144144 * @return An asynchronous locator function that searches for elements with the given selector,
145145 * and either finds one or throws an error
146146 */
147- allLocator ( selector : string ) : AsyncFn < TestElement [ ] > ;
147+ locatorForAll ( selector : string ) : AsyncFn < TestElement [ ] > ;
148148
149149 /**
150150 * Creates an asynchronous locator function that can be used to find a list of
@@ -155,7 +155,8 @@ export interface LocatorFactory {
155155 * @return An asynchronous locator function that searches components matching the given harness
156156 * type, and returns a list of `ComponentHarness`es.
157157 */
158- allLocator < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) : AsyncFn < T [ ] > ;
158+ locatorForAll < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
159+ AsyncFn < T [ ] > ;
159160}
160161
161162/**
@@ -189,7 +190,7 @@ export abstract class ComponentHarness {
189190 * @return An asynchronous locator function that searches for elements with the given selector,
190191 * and either finds one or throws an error
191192 */
192- protected requiredLocator ( selector : string ) : AsyncFn < TestElement > ;
193+ protected locatorForRequired ( selector : string ) : AsyncFn < TestElement > ;
193194
194195 /**
195196 * Creates an asynchronous locator function that can be used to find a `ComponentHarness` for a
@@ -200,11 +201,11 @@ export abstract class ComponentHarness {
200201 * @return An asynchronous locator function that searches components matching the given harness
201202 * type, and either returns a `ComponentHarness` for the component, or throws an error.
202203 */
203- protected requiredLocator < T extends ComponentHarness > (
204+ protected locatorForRequired < T extends ComponentHarness > (
204205 harnessType : ComponentHarnessConstructor < T > ) : AsyncFn < T > ;
205206
206- protected requiredLocator ( arg : any ) : any {
207- return this . locatorFacotry . requiredLocator ( arg ) ;
207+ protected locatorForRequired ( arg : any ) : any {
208+ return this . locatorFacotry . locatorForRequired ( arg ) ;
208209 }
209210
210211 /**
@@ -216,7 +217,7 @@ export abstract class ComponentHarness {
216217 * @return An asynchronous locator function that searches for elements with the given selector,
217218 * and either finds one or returns null.
218219 */
219- protected optionalLocator ( selector : string ) : AsyncFn < TestElement | null > ;
220+ protected locatorForOptional ( selector : string ) : AsyncFn < TestElement | null > ;
220221
221222 /**
222223 * Creates an asynchronous locator function that can be used to find a `ComponentHarness` for a
@@ -227,11 +228,11 @@ export abstract class ComponentHarness {
227228 * @return An asynchronous locator function that searches components matching the given harness
228229 * type, and either returns a `ComponentHarness` for the component, or null if none is found.
229230 */
230- protected optionalLocator < T extends ComponentHarness > (
231+ protected locatorForOptional < T extends ComponentHarness > (
231232 harnessType : ComponentHarnessConstructor < T > ) : AsyncFn < T | null > ;
232233
233- protected optionalLocator ( arg : any ) : any {
234- return this . locatorFacotry . optionalLocator ( arg ) ;
234+ protected locatorForOptional ( arg : any ) : any {
235+ return this . locatorFacotry . locatorForOptional ( arg ) ;
235236 }
236237
237238 /**
@@ -242,7 +243,7 @@ export abstract class ComponentHarness {
242243 * @return An asynchronous locator function that searches for elements with the given selector,
243244 * and either finds one or throws an error
244245 */
245- protected allLocator ( selector : string ) : AsyncFn < TestElement [ ] > ;
246+ protected locatorForAll ( selector : string ) : AsyncFn < TestElement [ ] > ;
246247
247248 /**
248249 * Creates an asynchronous locator function that can be used to find a list of
@@ -253,11 +254,11 @@ export abstract class ComponentHarness {
253254 * @return An asynchronous locator function that searches components matching the given harness
254255 * type, and returns a list of `ComponentHarness`es.
255256 */
256- protected allLocator < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
257+ protected locatorForAll < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
257258 AsyncFn < T [ ] > ;
258259
259- protected allLocator ( arg : any ) : any {
260- return this . locatorFacotry . allLocator ( arg ) ;
260+ protected locatorForAll ( arg : any ) : any {
261+ return this . locatorFacotry . locatorForAll ( arg ) ;
261262 }
262263}
263264
0 commit comments