Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress. Case 44. Adding additional checks. #3312

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ 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.', () => {
cy.intercept('PATCH', '/api/v1/tasks/**').as('patchTask');
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(() => {
Expand All @@ -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.', () => {
Expand Down