Improved stability of actions_tasks/task_changes_after_initial_save.js (#39)

main
Kirill Lakhov 4 years ago committed by GitHub
parent cb896ecab2
commit c266a9421c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,10 +50,15 @@ context('Delete a label from a task.', () => {
}); });
it('Create object, save annotation, state should be "in progress"', () => { it('Create object, save annotation, state should be "in progress"', () => {
cy.intercept('GET', /\/api\/users.*/).as('searchUsers');
cy.openJob(); cy.openJob();
cy.createRectangle(rectangleData); cy.createRectangle(rectangleData);
cy.saveJob(); cy.saveJob();
cy.interactMenu('Open the task'); cy.interactMenu('Open the task');
cy.wait('@searchUsers');
cy.get('.cvat-task-jobs-table-row').each(() => {
cy.wait('@searchUsers');
});
cy.reload(); cy.reload();
cy.closeModalUnsupportedPlatform(); // If the Firefox browser closes the modal window after reload cy.closeModalUnsupportedPlatform(); // If the Firefox browser closes the modal window after reload
cy.get('td.cvat-job-item-state').invoke('text').should('equal', 'in progress'); cy.get('td.cvat-job-item-state').invoke('text').should('equal', 'in progress');

Loading…
Cancel
Save