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