diff --git a/tests/cypress/integration/actions_tasks_objects/case_22_tag_annotation_mode.js b/tests/cypress/integration/actions_tasks_objects/case_22_tag_annotation_mode.js index 3a8b84a6..a68be08a 100644 --- a/tests/cypress/integration/actions_tasks_objects/case_22_tag_annotation_mode.js +++ b/tests/cypress/integration/actions_tasks_objects/case_22_tag_annotation_mode.js @@ -55,7 +55,7 @@ context('Tag annotation mode.', () => { skipFrame(); cy.checkFrameNum(1); checkCountFrameTags(0); - cy.goToPreviousDefaultFrame(0); + cy.goToPreviousFrame(0); checkCountFrameTags(0); }); @@ -66,13 +66,13 @@ context('Tag annotation mode.', () => { }); it('Set "Automatically go to the next frame" to true and add tag', () => { - cy.goToNextDefaultFrame(1); + cy.goToNextFrame(1); checkCountFrameTags(0); changeCheckboxAutomaticallyGoToNextFrame("check"); addTag(); cy.checkFrameNum(2); checkCountFrameTags(0); - cy.goToPreviousDefaultFrame(1); + cy.goToPreviousFrame(1); checkCountFrameTags(1); checkPresenceFrameTags(labelName); }); diff --git a/tests/cypress/support/commands.js b/tests/cypress/support/commands.js index edb62ecc..824be82b 100644 --- a/tests/cypress/support/commands.js +++ b/tests/cypress/support/commands.js @@ -497,12 +497,12 @@ Cypress.Commands.add('checkFrameNum', (frameNum) => { }); }); -Cypress.Commands.add('goToNextDefaultFrame', (expectedFrameNum) => { +Cypress.Commands.add('goToNextFrame', (expectedFrameNum) => { cy.get('.cvat-player-next-button').click(); cy.checkFrameNum(expectedFrameNum); }); -Cypress.Commands.add('goToPreviousDefaultFrame', (expectedFrameNum) => { +Cypress.Commands.add('goToPreviousFrame', (expectedFrameNum) => { cy.get('.cvat-player-previous-button').click(); cy.checkFrameNum(expectedFrameNum); });