Skip to content
This repository was archived by the owner on Jul 26, 2024. It is now read-only.

Commit c25d774

Browse files
authored
fix: LSDV-1476: Find taxonomy item, not just text (#9)
1 parent af7f175 commit c25d774

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

helpers/LSF/Taxonomy.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,19 @@ class TaxonomyHelper {
5151
}
5252
findItem(text) {
5353
return this.dropdown
54-
.find(this.selectors.item)
55-
.contains(text)
54+
.contains(this.selectors.item, text)
5655
.scrollIntoView();
5756
}
5857
hasSelected(text) {
5958
return this.selected
6059
.contains('div', text)
6160
.should('exist');
6261
}
62+
hasNoSelected(text) {
63+
return this.selected
64+
.contains('div', text)
65+
.should('not.exist');
66+
}
6367
open() {
6468
this.input
6569
.filter(this.selectors.closed)

0 commit comments

Comments
 (0)