Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Fix corner case in Combobox
Browse files Browse the repository at this point in the history
  • Loading branch information
xeger committed Feb 26, 2023
1 parent cdecb25 commit e2365fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/actions/fill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function fill(
.find('[data-testid=combobox-input]', QUIET)
.type(value, FORCE_QUICK_QUIET);
return cy
.contains('button.dropdown-item.active', value, QUIET)
.contains('button.dropdown-item', value, QUIET)
.click(QUIET);
} else if (isGearsSelect) {
if (logEntry) consoleProps.Type = 'React Select';
Expand Down
2 changes: 1 addition & 1 deletion src/commands/actions/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function select(
//.clear(FORCE_QUIET)
.type(valueOrTextOrIndex, FORCE_QUIET);
cy.contains(
'button.dropdown-item.active',
'button.dropdown-item',
valueOrTextOrIndex,
QUIET
).click(QUIET);
Expand Down

0 comments on commit e2365fb

Please sign in to comment.