File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ In the next step you can make the selector little bit shorter by extracting part
262
262
263
263
``` js
264
264
function findByTId (tid ) {
265
- return findByCss (` [tid* ='${ tid} ']` );
265
+ return findByCss (` [tid~ ='${ tid} ']` );
266
266
}
267
267
```
268
268
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ let VueWrapperPrototype = Object.getPrototypeOf(dummyComponent);
12
12
let WrapperPrototype = Object . getPrototypeOf ( VueWrapperPrototype ) ;
13
13
14
14
WrapperPrototype . tid = function ( selector ) {
15
- return this . find ( `[tid="${ selector } "]` ) ;
15
+ return this . find ( `[tid~ ="${ selector } "]` ) ;
16
16
} ;
17
17
18
18
WrapperPrototype . tids = function ( selector ) {
19
- return this . findAll ( `[tid="${ selector } "]` ) ;
19
+ return this . findAll ( `[tid~ ="${ selector } "]` ) ;
20
20
} ;
You can’t perform that action at this time.
0 commit comments