Fix test for issue 2473 (#3683)

main
Dmitry Kruchinin 4 years ago committed by GitHub
parent 0fd8b5d49e
commit 85bd09a1d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -99,11 +99,8 @@ context('Import annotations for frames with dots in name.', { browser: '!firefox
.get('input[type=file]')
.attachFile(annotationArchiveName);
});
cy.intercept('PUT', '/api/v1/jobs/**/annotations**').as('uploadAnnotationsPut');
cy.intercept('GET', '/api/v1/jobs/**/annotations**').as('uploadAnnotationsGet');
cy.intercept('GET', '/api/v1/jobs/**/annotations').as('uploadAnnotationsGet');
confirmUpdate('.cvat-modal-content-load-job-annotation');
cy.wait('@uploadAnnotationsPut', { timeout: 5000 }).its('response.statusCode').should('equal', 202);
cy.wait('@uploadAnnotationsPut').its('response.statusCode').should('equal', 201);
cy.wait('@uploadAnnotationsGet').its('response.statusCode').should('equal', 200);
cy.get('.cvat-notification-notice-upload-annotations-fail').should('not.exist');
cy.get('#cvat_canvas_shape_1').should('exist');

Loading…
Cancel
Save