From 61a1c167985879c909a44b7db428b10ae8145c1a Mon Sep 17 00:00:00 2001 From: dvkruchinin Date: Mon, 31 May 2021 11:47:40 +0300 Subject: [PATCH] Cypress test. Context images for 2D tasks. --- .../assets/case_90/case_90_context_image.zip | Bin 0 -> 22528 bytes .../actions_tasks3/case_90_context_image.js | 107 ++++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 tests/cypress/integration/actions_tasks3/assets/case_90/case_90_context_image.zip create mode 100644 tests/cypress/integration/actions_tasks3/case_90_context_image.js diff --git a/tests/cypress/integration/actions_tasks3/assets/case_90/case_90_context_image.zip b/tests/cypress/integration/actions_tasks3/assets/case_90/case_90_context_image.zip new file mode 100644 index 0000000000000000000000000000000000000000..9f8421bd0f8e757f6684d23b453507a5b3b93ad9 GIT binary patch literal 22528 zcmb@s1FSGlpQe5E9NV^S+qP}nwr$(CeV$|6wr%f!=KW?iGha5@>~8;(PIY&3Csj#T zbzgPKO96u*0{{Sk1GH*&E8hNv9Nt9)05Bv60HFBiu91P0i5>^No{^ocvx&R2o`sEp znF-y$pY{IZ83V1ot=YAvjdGG%rf&t4YpDp&wJld{2|I46rY5{ikO z4yMq^2gV}$yEq9cK@OaOX%1ows&%FDYjnuHy2LO81|czLHjVz0vy4?`9jQG?Q@SPn zyazkIt&k_U--aWExF|>u&WYdT7SW0n}`bemVtT z0Uuv_B#P_gQVjH?`%2X8_t$Y|@~qs+mGST8Diq%ieD-tF==thMOr8(-@8I$`S?lkG z*rJk1-Qn@*)1qHPr5q>R`vwEu5c)H2-XB9UCb^f?e*@SzSD@#>&qrD z`j#JQtKEvq_7eny72d`Qi_4iZbHpuk=d-(?Amf?VtV_|QhhD;1y#Zw*Tk2{kNu8g z9MwXDB`&Lh^s6baGiPg@Rot0Y@~ceo$;k(lW1rCH`u-gOJ@BegV6r!I|gk@7ar2Y^WZU@z&5>7B*Wf zv)4E%G9}#^JJ+!Zlt>C9EjyGyzWb{Oky|R;>j5-9jZxYH(%6yORS0r8F&vXNe6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+N=&?t_~KSNPz2S2Lb#3AWGFOa`TD=wmA2;;ORM;buDyKL z4-Hq4X&^9;`zZ`+9!j{QXq6^-c1ADzA@nwXf{+Mr1Y?~1>3*ln1$byaXMUj?NB;jT~^vcbsVWT z2fD9D1je!2>dAawD=}($#^!c(F&}~(w3vmpeJtD`Y|n(v8A|XbFRToPky%M2!MRk$ zppO@>9EBou98V~C>k~C9 zq!9ogdw3ae+-sa;6`PqhB1?;9f;ZsE_5HE1ZXWk*64cenp-%giARV$8M;|9|Aqm)j zI_#AjMniFR?3AOM^rieNzS>h>EWLjm91}Q2DVqd4}LBC<@!yg^)~@=wG~-@ zgi|sE4Q4wRb(hB7Z?CT9)Yv$8u>Rf@^;)@nJ(&NP|4v^0A7bcV<`4f4`&TX!zwv&- zvQz$duz%cd{|ol7<=?+yZ(oNFj=zKbKVtBI9st%Ky6xW(zvo|a@ZaMXB;mDB?0=;% z|Bv(dvl{SEn!lEZ|E6KS4yOML&EHiA{t%1*`|15vspIz^ex*t+^Z!cqpM{TqrTSN; jkKZ)R*8%#!(EMGhf4(UA1iyF)ub&YdEG$ZcU#ouru}Cw{ literal 0 HcmV?d00001 diff --git a/tests/cypress/integration/actions_tasks3/case_90_context_image.js b/tests/cypress/integration/actions_tasks3/case_90_context_image.js new file mode 100644 index 000000000000..3812bfba5189 --- /dev/null +++ b/tests/cypress/integration/actions_tasks3/case_90_context_image.js @@ -0,0 +1,107 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +/// + +context('Context images for 2D tasks.', () => { + const caseId = '90'; + const labelName = `Case ${caseId}`; + const taskName = `New annotation task for ${labelName}`; + const attrName = `Attr for ${labelName}`; + const textDefaultValue = 'color'; + const pathToArchive = `../../${__dirname}/assets/case_90/case_90_context_image.zip`; + + function previewRotate (directionRotation, expectedDeg) { + if (directionRotation === 'right') { + cy.get('[data-icon="rotate-right"]').click(); + } else { + cy.get('[data-icon="rotate-left"]').click(); + } + cy.get('.ant-image-preview-img').should('have.attr', 'style').and('contain', `rotate(${expectedDeg}deg)`); + } + + function previewScaleWheel (zoom, expectedScaleValue) { + cy.get('.ant-image-preview-img') + .trigger('wheel', {deltaY: zoom}) + .should('have.attr', 'style') + .and('contain', `scale3d(${expectedScaleValue})`); + } + + function previewScaleButton (zoom, expectedScaleValue) { + cy.get(`[data-icon="zoom-${zoom}"]`).click(); + cy.get('.ant-image-preview-img') + .should('have.attr', 'style') + .and('contain', `scale3d(${expectedScaleValue})`); + } + + before(() => { + cy.visit('auth/login'); + cy.login(); + cy.createAnnotationTask( + taskName, + labelName, + attrName, + textDefaultValue, + pathToArchive, + ); + cy.openTaskJob(taskName); + }); + + after(() => { + cy.goToTaskList(); + cy.deleteTask(taskName); + }); + + describe(`Testing case "${caseId}"`, () => { + it('Check a context image.', () => { + cy.get('.cvat-context-image').should('exist').and('be.visible'); + cy.get('.cvat-player-next-button').click(); + cy.get('.cvat-context-image').should('exist').and('be.visible'); // Check a context image on the second frame + cy.get('.cvat-player-previous-button').click(); + cy.get('.cvat-context-image-switcher').click(); // Hide a context image + cy.get('.cvat-context-image').should('not.exist'); + cy.get('.cvat-context-image-switcher').click(); // Unhide + cy.get('.cvat-context-image').should('exist').and('be.visible'); + }); + + it('Preview a context image. Rotate.', () => { + let degRight = 0; + let degLeft = 360; + cy.contains('Preview').click(); + cy.get('.ant-image-preview-mask').should('exist'); + for (let numberSpins = 0; numberSpins < 4; numberSpins++) { + degRight += 90; + previewRotate('right', String(degRight)); + } + for (let numberSpins = 0; numberSpins < 4; numberSpins++) { + degLeft -= 90; + previewRotate('left', String(degLeft)); + } + }); + + it('Preview a context image. Scale.', () => { + previewScaleWheel(-1, '2, 2, 1'); + previewScaleWheel(1, '1, 1, 1'); + previewScaleButton('in', '2, 2, 1'); + previewScaleButton('out', '1, 1, 1'); + }); + + it('Preview a context image. Move.', () => { + cy.get('.ant-image-preview-img-wrapper').should('have.attr', 'style').then((translate3d) => { + cy.get('.ant-image-preview-img').trigger('mousedown', {button: 0}); + cy.get('.ant-image-preview-moving').should('exist'); + cy.get('.ant-image-preview-wrap').trigger('mousemove', 300, 300); + cy.get('.ant-image-preview-img-wrapper').should('have.attr', 'style').and('not.equal', translate3d) + cy.get('.ant-image-preview-img').trigger('mouseup'); + cy.get('.ant-image-preview-moving').should('not.exist'); + cy.get('.ant-image-preview-img-wrapper').should('have.attr', 'style').and('equal', translate3d) + }); + }); + + it('Preview a context image. Cancel preview.', () => { + cy.get('.ant-image-preview-wrap').type('{Esc}'); + cy.get('.ant-image-preview-wrap').should('have.attr', 'style').and('contain', 'display: none') + }); + }); +});