Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openmetadata-ui/src/main/resources/ui/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from 'cypress';
import plugins from './cypress/plugins/index.js';

export default defineConfig({
projectId: 'a9yxci',
projectId: 'w6gjxd',
viewportWidth: 1240,
viewportHeight: 660,
watchForFileChanges: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,27 +178,32 @@ describe('Teams flow should work properly', () => {
.clear()
.type(TEAM_DETAILS.updatedname);

interceptURL('PATCH', 'api/v1/teams/*', 'saveTeamName');
interceptURL(
'GET',
`api/v1/users?fields=teams,roles&team=${TEAM_DETAILS.name}&limit=15`,
'getTeam'
`/api/v1/users?fields=teams,roles&team=${TEAM_DETAILS.name}&limit=15`,
'getTeamDetails'
);
//Save the updated display name
cy.get('[data-testid="saveAssociatedTag"]')
.should('exist')
.should('be.visible')
.click();

verifyResponseStatusCode('@getTeamDetails', 200);
//Validate the updated display name
cy.get('[data-testid="team-heading"]').then(($el) => {
cy.wrap($el).should('have.text', TEAM_DETAILS.updatedname);
});
verifyResponseStatusCode('@saveTeamName', 200);
verifyResponseStatusCode('@getTeam', 200);

cy.get('[data-testid="inactive-link"]')
.should('be.visible')
.should('contain', TEAM_DETAILS.updatedname);

//Click on edit description button
cy.get('[data-testid="edit-description"]').should('be.visible').click();
cy.get('[data-testid="edit-description"]')
.should('exist')
.then(($editDescription) => {
cy.wrap($editDescription).should('be.visible').click();
});

//Entering updated description
cy.get(descriptionBox).clear().type(updateddescription);
Expand Down