diff --git a/smoke-test/tests/cypress/cypress/e2e/mutations/dataset_ownership.js b/smoke-test/tests/cypress/cypress/e2e/mutations/dataset_ownership.js index 465d7998b9f9a..552c3d460ade9 100644 --- a/smoke-test/tests/cypress/cypress/e2e/mutations/dataset_ownership.js +++ b/smoke-test/tests/cypress/cypress/e2e/mutations/dataset_ownership.js @@ -8,7 +8,7 @@ const addOwner = (owner, type, elementId) => { cy.clickOptionWithTestId("add-owners-button"); cy.contains("Search for users or groups...").click({ force: true }); cy.focused().type(owner); - cy.clickOptionWithText(owner); + cy.get('.ant-select-item').contains(owner).click(); cy.focused().blur(); cy.waitTextVisible(owner); cy.get('[role="dialog"]').contains("Technical Owner").click();