@@ -99,7 +99,7 @@ export interface LocatorFactory {
99
99
* @return An asynchronous locator function that searches for elements with the given selector,
100
100
* and either finds one or throws an error
101
101
*/
102
- requiredLocator ( selector : string ) : AsyncFn < TestElement > ;
102
+ locatorForRequired ( selector : string ) : AsyncFn < TestElement > ;
103
103
104
104
/**
105
105
* Creates an asynchronous locator function that can be used to find a `ComponentHarness` for a
@@ -110,7 +110,7 @@ export interface LocatorFactory {
110
110
* @return An asynchronous locator function that searches components matching the given harness
111
111
* type, and either returns a `ComponentHarness` for the component, or throws an error.
112
112
*/
113
- requiredLocator < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
113
+ locatorForRequired < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
114
114
AsyncFn < T > ;
115
115
116
116
/**
@@ -122,7 +122,7 @@ export interface LocatorFactory {
122
122
* @return An asynchronous locator function that searches for elements with the given selector,
123
123
* and either finds one or returns null.
124
124
*/
125
- optionalLocator ( selector : string ) : AsyncFn < TestElement | null > ;
125
+ locatorForOptional ( selector : string ) : AsyncFn < TestElement | null > ;
126
126
127
127
/**
128
128
* Creates an asynchronous locator function that can be used to find a `ComponentHarness` for a
@@ -133,7 +133,7 @@ export interface LocatorFactory {
133
133
* @return An asynchronous locator function that searches components matching the given harness
134
134
* type, and either returns a `ComponentHarness` for the component, or null if none is found.
135
135
*/
136
- optionalLocator < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
136
+ locatorForOptional < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
137
137
AsyncFn < T | null > ;
138
138
139
139
/**
@@ -144,7 +144,7 @@ export interface LocatorFactory {
144
144
* @return An asynchronous locator function that searches for elements with the given selector,
145
145
* and either finds one or throws an error
146
146
*/
147
- allLocator ( selector : string ) : AsyncFn < TestElement [ ] > ;
147
+ locatorForAll ( selector : string ) : AsyncFn < TestElement [ ] > ;
148
148
149
149
/**
150
150
* Creates an asynchronous locator function that can be used to find a list of
@@ -155,7 +155,8 @@ export interface LocatorFactory {
155
155
* @return An asynchronous locator function that searches components matching the given harness
156
156
* type, and returns a list of `ComponentHarness`es.
157
157
*/
158
- allLocator < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) : AsyncFn < T [ ] > ;
158
+ locatorForAll < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
159
+ AsyncFn < T [ ] > ;
159
160
}
160
161
161
162
/**
@@ -189,7 +190,7 @@ export abstract class ComponentHarness {
189
190
* @return An asynchronous locator function that searches for elements with the given selector,
190
191
* and either finds one or throws an error
191
192
*/
192
- protected requiredLocator ( selector : string ) : AsyncFn < TestElement > ;
193
+ protected locatorForRequired ( selector : string ) : AsyncFn < TestElement > ;
193
194
194
195
/**
195
196
* Creates an asynchronous locator function that can be used to find a `ComponentHarness` for a
@@ -200,11 +201,11 @@ export abstract class ComponentHarness {
200
201
* @return An asynchronous locator function that searches components matching the given harness
201
202
* type, and either returns a `ComponentHarness` for the component, or throws an error.
202
203
*/
203
- protected requiredLocator < T extends ComponentHarness > (
204
+ protected locatorForRequired < T extends ComponentHarness > (
204
205
harnessType : ComponentHarnessConstructor < T > ) : AsyncFn < T > ;
205
206
206
- protected requiredLocator ( arg : any ) : any {
207
- return this . locatorFacotry . requiredLocator ( arg ) ;
207
+ protected locatorForRequired ( arg : any ) : any {
208
+ return this . locatorFacotry . locatorForRequired ( arg ) ;
208
209
}
209
210
210
211
/**
@@ -216,7 +217,7 @@ export abstract class ComponentHarness {
216
217
* @return An asynchronous locator function that searches for elements with the given selector,
217
218
* and either finds one or returns null.
218
219
*/
219
- protected optionalLocator ( selector : string ) : AsyncFn < TestElement | null > ;
220
+ protected locatorForOptional ( selector : string ) : AsyncFn < TestElement | null > ;
220
221
221
222
/**
222
223
* Creates an asynchronous locator function that can be used to find a `ComponentHarness` for a
@@ -227,11 +228,11 @@ export abstract class ComponentHarness {
227
228
* @return An asynchronous locator function that searches components matching the given harness
228
229
* type, and either returns a `ComponentHarness` for the component, or null if none is found.
229
230
*/
230
- protected optionalLocator < T extends ComponentHarness > (
231
+ protected locatorForOptional < T extends ComponentHarness > (
231
232
harnessType : ComponentHarnessConstructor < T > ) : AsyncFn < T | null > ;
232
233
233
- protected optionalLocator ( arg : any ) : any {
234
- return this . locatorFacotry . optionalLocator ( arg ) ;
234
+ protected locatorForOptional ( arg : any ) : any {
235
+ return this . locatorFacotry . locatorForOptional ( arg ) ;
235
236
}
236
237
237
238
/**
@@ -242,7 +243,7 @@ export abstract class ComponentHarness {
242
243
* @return An asynchronous locator function that searches for elements with the given selector,
243
244
* and either finds one or throws an error
244
245
*/
245
- protected allLocator ( selector : string ) : AsyncFn < TestElement [ ] > ;
246
+ protected locatorForAll ( selector : string ) : AsyncFn < TestElement [ ] > ;
246
247
247
248
/**
248
249
* Creates an asynchronous locator function that can be used to find a list of
@@ -253,11 +254,11 @@ export abstract class ComponentHarness {
253
254
* @return An asynchronous locator function that searches components matching the given harness
254
255
* type, and returns a list of `ComponentHarness`es.
255
256
*/
256
- protected allLocator < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
257
+ protected locatorForAll < T extends ComponentHarness > ( harnessType : ComponentHarnessConstructor < T > ) :
257
258
AsyncFn < T [ ] > ;
258
259
259
- protected allLocator ( arg : any ) : any {
260
- return this . locatorFacotry . allLocator ( arg ) ;
260
+ protected locatorForAll ( arg : any ) : any {
261
+ return this . locatorFacotry . locatorForAll ( arg ) ;
261
262
}
262
263
}
263
264
0 commit comments