renamed functions go to another frames

main
Dmitriy Oparin 5 years ago
parent 0265313d56
commit 6f1f3f3103

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

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

Loading…
Cancel
Save