Cypress. Case 44. Adding additional checks. (#3312)

* Added classes

* Test adaptation

* Revert adding classes

* Rework the test

* Remove unnecessary comments
main
Dmitry Kruchinin 5 years ago committed by GitHub
parent 9afb9d01df
commit 7699bd362f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -38,6 +38,7 @@ context('Changing a default value for an attribute.', () => {
cy.addNewLabel(additionalLabel, additionalAttrsLabel);
cy.wait('@patchTask').its('response.statusCode').should('equal', 200);
cy.wait('@getTask').its('response.statusCode').should('equal', 200);
cy.get('.cvat-constructor-viewer').should('exist').and('be.visible');
});
it('Open label editor. Change default values for text & checkbox attributes, press Done.', () => {
@ -45,11 +46,10 @@ context('Changing a default value for an attribute.', () => {
cy.get('.cvat-constructor-viewer').within(() => {
cy.contains(new RegExp(`^${additionalLabel}$`))
.parents('.cvat-constructor-viewer-item')
.should('be.visible')
.find('[aria-label="edit"]')
.should('be.visible')
.then((e) => {
cy.get(e).click();
});
.click();
});
cy.get('.cvat-label-constructor-updater').within(() => {
@ -74,6 +74,7 @@ context('Changing a default value for an attribute.', () => {
)}.values'`,
).should('not.exist');
cy.wait('@patchTask').its('response.statusCode').should('equal', 200);
cy.get('.cvat-constructor-viewer').should('exist').and('be.visible');
});
it('Open a job, create an object. Attribute values are correct.', () => {

Loading…
Cancel
Save