|
|
|
|
@ -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');
|
|
|
|
|
|