From 3a7fdb2c96be1cf019ce88e95c73abdd11285ade Mon Sep 17 00:00:00 2001 From: Kruchinin Date: Wed, 25 Nov 2020 16:57:42 +0300 Subject: [PATCH] Apply comments. --- .../case_19_all_image_rotate_features.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/cypress/integration/actions_tasks_objects/case_19_all_image_rotate_features.js b/tests/cypress/integration/actions_tasks_objects/case_19_all_image_rotate_features.js index a33e5003..69a06717 100644 --- a/tests/cypress/integration/actions_tasks_objects/case_19_all_image_rotate_features.js +++ b/tests/cypress/integration/actions_tasks_objects/case_19_all_image_rotate_features.js @@ -23,6 +23,12 @@ context('Rotate all images feature.', () => { cy.get('#cvat_canvas_background').should('have.attr', 'style').and('contain', `rotate(${deg}deg);`); } + function checkFrameNum(frameNum) { + cy.get('.cvat-player-frame-selector').within(() => { + cy.get('input[role="spinbutton"]').should('have.value', frameNum); + }); + } + before(() => { cy.openTaskJob(taskName); }); @@ -36,6 +42,7 @@ context('Rotate all images feature.', () => { it("Go to the next frame. It wasn't rotated.", () => { cy.get('.cvat-player-next-button').click(); + checkFrameNum(1); checkDegRotate(0); }); @@ -52,8 +59,10 @@ context('Rotate all images feature.', () => { it('Go to the previous and to the next frame. They are also rotated 180 deg.', () => { cy.get('.cvat-player-previous-button').click(); + checkFrameNum(0); checkDegRotate(180); cy.get('.cvat-player-next-button').click(); + checkFrameNum(1); checkDegRotate(180); }); });