Skip to content

Commit

Permalink
test: update ComboBox tests to use typing interaction instead of clic…
Browse files Browse the repository at this point in the history
…king on the dropdown
  • Loading branch information
Jakub Sobolewski committed May 16, 2024
1 parent 7f9a9ce commit 6c05ca1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/cypress/e2e/e2e-test/fluentComponents.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,11 @@ function comboBoxDefaultTest(value = 'some text', output = value) {
}

function comboBoxChangeTest() {
cy.get('#fluentInputs-comboBox-input + button').click();
cy.get('#fluentInputs-comboBox-list');
cy.get('#fluentInputs-comboBox-list0').click();
cy.get('#fluentInputs-comboBox-input').focus();
cy.get('#fluentInputs-comboBox-input').type('Option A{enter}');
cy.get('#fluentInputs-comboBoxValue').contains('Value: A');
cy.get('#fluentInputs-comboBox-input').type('New value{enter}');
cy.get('#fluentInputs-comboBoxValue').contains('Value: New value');
}

function dropdownDefaultTest(value = 'Option A', output = 'A') {
Expand Down

0 comments on commit 6c05ca1

Please sign in to comment.