|
|
|
|
@ -49,6 +49,13 @@ context('Canvas 3D functionality. Basic actions.', () => {
|
|
|
|
|
compareImages(`${screenshotNameBefore}.png`, `${screenshotNameAfter}.png`);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function testContextImage() {
|
|
|
|
|
cy.get('.cvat-contextImage-show').should('exist').and('be.visible');
|
|
|
|
|
cy.get('[data-icon="camera"]').click(); // Context image hide
|
|
|
|
|
cy.get('.cvat-contextImage-show').should('not.exist');
|
|
|
|
|
cy.get('[data-icon="camera"]').click(); // Context image show
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
before(() => {
|
|
|
|
|
cy.openTaskJob(taskName);
|
|
|
|
|
});
|
|
|
|
|
@ -119,25 +126,28 @@ context('Canvas 3D functionality. Basic actions.', () => {
|
|
|
|
|
it('Interaction with the frame change buttons.', () => {
|
|
|
|
|
cy.get('.cvat-player-last-button').click();
|
|
|
|
|
cy.checkFrameNum(2);
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', 'generated_pcd_50000_points.pcd');
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', '000003.pcd');
|
|
|
|
|
testContextImage(); // Check context image on the last frame
|
|
|
|
|
cy.get('.cvat-player-first-button').click();
|
|
|
|
|
cy.checkFrameNum(0);
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', 'generated_pcd_100000_points.pcd');
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', '000001.pcd');
|
|
|
|
|
testContextImage(); // Check context image on the firts frame
|
|
|
|
|
cy.get('.cvat-player-forward-button').click();
|
|
|
|
|
cy.checkFrameNum(2);
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', 'generated_pcd_50000_points.pcd');
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', '000003.pcd');
|
|
|
|
|
cy.get('.cvat-player-backward-button').click();
|
|
|
|
|
cy.checkFrameNum(0);
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', 'generated_pcd_100000_points.pcd');
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', '000001.pcd');
|
|
|
|
|
cy.get('.cvat-player-next-button').click();
|
|
|
|
|
cy.checkFrameNum(1);
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', 'generated_pcd_10000_points.pcd');
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', '000002.pcd');
|
|
|
|
|
testContextImage(); // Check context image on the second frame
|
|
|
|
|
cy.get('.cvat-player-previous-button').click();
|
|
|
|
|
cy.checkFrameNum(0);
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', 'generated_pcd_100000_points.pcd');
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', '000001.pcd');
|
|
|
|
|
cy.get('.cvat-player-play-button').click();
|
|
|
|
|
cy.checkFrameNum(2);
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', 'generated_pcd_50000_points.pcd');
|
|
|
|
|
cy.get('.cvat-player-filename-wrapper').should('contain.text', '000003.pcd');
|
|
|
|
|
cy.get('.cvat-player-first-button').click(); // Return to first frame
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|