Skip to content

Commit

Permalink
Update Cypress test "Creating a label with existing label name" for P…
Browse files Browse the repository at this point in the history
…R 2879 (#2883)

* Fix case 43 for PR 2879

* Try restart CI
  • Loading branch information
dvkruchinin authored Mar 1, 2021
1 parent b0a33af commit ebdfdbe
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ context('Creating a label with existing label name.', () => {
// Try to create a label with existing label name
cy.get('.cvat-constructor-viewer-new-item').click();
cy.get('[placeholder="Label name"]').type(firstLabelName);
cy.contains('[type="submit"]', 'Done').click();
cy.contains('[role="alert"]', 'Label name must be unique for the task') // Checking alert visibility
.should('exist')
.and('be.visible');
});
cy.get('.cvat-notification-notice-update-task-failed')
.should('exist')
.and('contain.text', 'label names must be unique');
});
});
});

0 comments on commit ebdfdbe

Please sign in to comment.