From 202a6a2388bebb66a3e24b5f5299b118c55799f5 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Tue, 14 Mar 2023 16:43:10 +0530 Subject: [PATCH] Fix cypress for tags (#10569) --- .../main/resources/ui/cypress/e2e/Pages/Tags.spec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Tags.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Tags.spec.js index eb1fa95712b..d9f54035e72 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Tags.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Tags.spec.js @@ -160,6 +160,8 @@ describe('Tags page should work', () => { const entity = SEARCH_ENTITY_TABLE.table_2; const term = `${NEW_TAG_CATEGORY.name}.${NEW_TAG.name}`; const term2 = 'PersonalData.Personal'; + const assignee = 'admin'; + visitEntityDetailsPage(entity.term, entity.serviceName, entity.entity); cy.get('[data-testid="breadcrumb-link"]') @@ -199,6 +201,15 @@ describe('Tags page should work', () => { .should('exist') .click(); + // set assignees for task + cy.get( + '[data-testid="select-assignee"] > .ant-select-selector > .ant-select-selection-overflow' + ) + .should('be.visible') + .click() + .type(assignee); + cy.get('.ant-select-item-option-content').contains(assignee).click(); + cy.get( '[data-testid="select-tags"] > .ant-select-selector > .ant-select-selection-overflow' )