@ -37,4 +37,4 @@ displayed as a red square which is tied to the cursor.
During the drawing process you can remove the last point by clicking on it with the left mouse button.
During the drawing process you can remove the last point by clicking on it with the left mouse button.
- Once all the points are placed, you can complete the creation of the object by clicking on the icon or clicking `N`.
- Once all the points are placed, you can complete the creation of the object by clicking on the icon or clicking `N`.
As a result, a polygon will be created (read more about the polygons in the [annoation with polygons](/docs/for-users/user-guide/advanced/annotation-with-polygons/)).
As a result, a polygon will be created (read more about the polygons in the [annotation with polygons](/docs/for-users/user-guide/advanced/annotation-with-polygons/)).
cy.get('[aria-label="more"]').trigger('mouseover').wait(300);// Wait dropdown menu transition
cy.get('[aria-label="more"]').trigger('mouseover').wait(300);// Wait dropdown menu transition
});
});
cy.get('.cvat-object-item-menu').last().should('be.visible').contains('button','Make a copy').click();// Get the tast element from cvat-object-item-menu array
cy.get('.cvat-object-item-menu').last().should('be.visible').contains('button','Make a copy').click();// Get the last element from cvat-object-item-menu array
@ -145,7 +145,7 @@ context('Object make a copy.', () => {
.find('[aria-label="more"]')
.find('[aria-label="more"]')
.trigger('mouseover')
.trigger('mouseover')
.wait(300);// Wait dropdown menu transition;
.wait(300);// Wait dropdown menu transition;
cy.get('.cvat-object-item-menu').last().should('be.visible').contains('button','Make a copy').click();// Get the tast element from cvat-object-item-menu array
cy.get('.cvat-object-item-menu').last().should('be.visible').contains('button','Make a copy').click();// Get the last element from cvat-object-item-menu array
expect(widthHightArrBeforeResize[0][0]).to.be.equal(widthHightArrAfterResize[0][0]);// Width of cvat-canvas3d-perspective before and after didn't change
expect(widthHeightArrBeforeResize[0][0]).to.be.equal(widthHeightArrAfterResize[0][0]);// Width of cvat-canvas3d-perspective before and after didn't change
expect(widthHightArrBeforeResize[0][1]).not.be.equal(widthHightArrAfterResize[0][1]);// Height of cvat-canvas3d-perspective changed
expect(widthHeightArrBeforeResize[0][1]).not.be.equal(widthHeightArrAfterResize[0][1]);// Height of cvat-canvas3d-perspective changed
expect(widthHightArrAfterResize[1][1])
expect(widthHeightArrAfterResize[1][1])
.to.be.equal(widthHightArrAfterResize[2][1])
.to.be.equal(widthHeightArrAfterResize[2][1])
.to.be.equal(widthHightArrAfterResize[3][1]);// Top/side/front has equal height after changes
.to.be.equal(widthHeightArrAfterResize[3][1]);// Top/side/front has equal height after changes