From 6c05ca14b0646a66c46d65639a43e8230bf6f44a Mon Sep 17 00:00:00 2001 From: Jakub Sobolewski Date: Thu, 16 May 2024 12:14:10 +0200 Subject: [PATCH] test: update ComboBox tests to use typing interaction instead of clicking on the dropdown --- js/cypress/e2e/e2e-test/fluentComponents.cy.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/cypress/e2e/e2e-test/fluentComponents.cy.js b/js/cypress/e2e/e2e-test/fluentComponents.cy.js index d9b64321..085ca7fb 100644 --- a/js/cypress/e2e/e2e-test/fluentComponents.cy.js +++ b/js/cypress/e2e/e2e-test/fluentComponents.cy.js @@ -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') {