Skip to content

Commit

Permalink
fix(smoke-test): fix flakiness of auto complete test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunal-kankriya authored Jul 8, 2024
1 parent 97638c3 commit 25dca37
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ describe("auto-complete", () => {
cy.login();
cy.visit("/");
cy.get("input[data-testid=search-input]").type("SampleCypressHiveDataset");
cy.get('[data-testid^="auto-complete-option"]').first().click();
cy.get('[data-testid^="auto-complete-option"]')
.contains("SampleCypressHiveDataset")
.click();
cy.get(".ant-table-row").should("be.visible");
cy.url().should(
"include",
"dataset/urn:li:dataset:(urn:li:dataPlatform:hive,SampleCypressHiveDataset,PROD)",
);
cy.wait(2000);
});

it("should filter auto-complete results when clicking on a quick filter", () => {
Expand Down

0 comments on commit 25dca37

Please sign in to comment.