Fix cypress for tags (#10569)

This commit is contained in:
Ashish Gupta 2023-03-14 16:43:10 +05:30 committed by GitHub
parent 8a5b54aebb
commit 202a6a2388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'
)