Skip to content

Commit 796ef76

Browse files
committed
Fixed test ID selectors in docs and helper.
1 parent 71d9b76 commit 796ef76

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ In the next step you can make the selector little bit shorter by extracting part
262262

263263
```js
264264
function findByTId(tid) {
265-
return findByCss(`[tid*='${tid}']`);
265+
return findByCss(`[tid~='${tid}']`);
266266
}
267267
```
268268

Diff for: test/unit/utils/tid.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ let VueWrapperPrototype = Object.getPrototypeOf(dummyComponent);
1212
let WrapperPrototype = Object.getPrototypeOf(VueWrapperPrototype);
1313

1414
WrapperPrototype.tid = function (selector) {
15-
return this.find(`[tid="${selector}"]`);
15+
return this.find(`[tid~="${selector}"]`);
1616
};
1717

1818
WrapperPrototype.tids = function (selector) {
19-
return this.findAll(`[tid="${selector}"]`);
19+
return this.findAll(`[tid~="${selector}"]`);
2020
};

0 commit comments

Comments
 (0)