Skip to content

Commit

Permalink
Fixes to failing tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldutra committed Feb 26, 2020
1 parent 5b7aa31 commit 80229dc
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe("Query Based Dropdown Parameter", () => {
cy.wait(200); // eslint-disable-line cypress/no-unnecessary-waiting

cy.getByTestId("ParameterName-test-parameter")
.find(".ant-select")
.find(".ant-select-selection")
.click();

// make sure all options are unselected and select all
Expand Down Expand Up @@ -129,14 +129,20 @@ describe("Query Based Dropdown Parameter", () => {
});

const selectResultOptionsAndExecute = (searchTerm, expectedResult) => {
cy.wait(300); // eslint-disable-line cypress/no-unnecessary-waiting

cy.getByTestId("ParameterName-test-parameter")
.find(".ant-select-selection")
.click()
.find("input")
.type(searchTerm);
.type(searchTerm, { force: true });

cy.wait("@DropdownResults");

// make sure all options are unselected and select all
// wait to make sure results were updated in the dropdown
cy.wait(300); // eslint-disable-line cypress/no-unnecessary-waiting

// select all options
cy.get("li.ant-select-dropdown-menu-item").each($option => {
cy.wrap($option).click();
});
Expand Down

0 comments on commit 80229dc

Please sign in to comment.