Skip to content

Commit

Permalink
Fix test for issue 2473 (#3683)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvkruchinin authored Sep 17, 2021
1 parent 0fd8b5d commit 85bd09a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 85bd09a

Please sign in to comment.