@ -1,8 +1,6 @@
/ *
* Copyright ( C ) 2020 Intel Corporation
*
* SPDX - License - Identifier : MIT
* /
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />
@ -43,19 +41,19 @@ context('Merge/split features', () => {
describe ( ` Testing case " ${ caseId } " ` , ( ) => {
it ( 'Create rectangle shape on first frame' , ( ) => {
checkFrameNumber ( frameNum ) ;
cy . createRectangle ( createRectangleShape2Points ) ;
checkFrameNumber ( frameNum )
} ) ;
it ( 'Create rectangle shape on third frame with another position' , ( ) => {
cy . get ( '.cvat-player-next-button' ) . click ( ) . click ( ) ;
checkFrameNumber ( frameNum + 2 )
checkFrameNumber ( frameNum + 2 ) ;
cy . createRectangle ( createRectangleShape2PointsSecond ) ;
} ) ;
it ( 'Merge the objects with "Merge button"' , ( ) => {
cy . get ( '.cvat-merge-control' ) . click ( ) ;
cy . get ( '#cvat_canvas_shape_2' ) . click ( ) ;
cy . get ( '.cvat-player-previous-button' ) . click ( ) . click ( ) ;
checkFrameNumber ( frameNum )
checkFrameNumber ( frameNum ) ;
cy . get ( '#cvat_canvas_shape_1' ) . click ( ) ;
cy . get ( '.cvat-merge-control' ) . click ( ) ;
} ) ;
@ -65,18 +63,18 @@ context('Merge/split features', () => {
cy . get ( '#cvat-objects-sidebar-state-item-3' ) . within ( ( ) => {
cy . get ( '.ant-row-flex' ) . within ( ( ) => {
cy . get ( '.anticon-star' ) . should ( 'have.css' , 'color' ) . then ( $iconStarCss => {
iconStarCss = $iconStarCss
expect ( iconStarCss ) . to . be . eq ( 'rgb(36, 36, 36)' )
iconStarCss = $iconStarCss ;
expect ( iconStarCss ) . to . be . eq ( 'rgb(36, 36, 36)' ) ;
} ) ;
} ) ;
} ) ;
cy . get ( '.cvat-player-next-button' ) . click ( ) . click ( ) ;
checkFrameNumber ( frameNum + 2 )
checkFrameNumber ( frameNum + 2 ) ;
cy . get ( '#cvat_canvas_shape_3' ) . should ( 'exist' ) . and ( 'be.visible' ) ;
cy . get ( '#cvat-objects-sidebar-state-item-3' ) . should ( 'contain' , '3' ) . and ( 'contain' , 'RECTANGLE TRACK' ) ;
cy . get ( '#cvat-objects-sidebar-state-item-3' ) . within ( ( ) => {
cy . get ( '.ant-row-flex' ) . within ( ( ) => {
cy . get ( '.anticon-star' ) . should ( 'have.css' , 'color' , iconStarCss )
cy . get ( '.anticon-star' ) . should ( 'have.css' , 'color' , iconStarCss ) ;
} ) ;
} ) ;
} ) ;
@ -88,5 +86,17 @@ context('Merge/split features', () => {
checkFrameNumber ( frameNum + 3 )
cy . get ( '#cvat_canvas_shape_3' ) . should ( 'exist' ) . and ( 'be.hidden' ) ;
} ) ;
// it('Go to the second frame and remove "outside" flag from the track. The track now visible.', () => {
// cy.get('.cvat-player-previous-button').click().click();
// checkFrameNumber(frameNum + 1)
// cy.get('#cvat-objects-sidebar-state-item-3').within(() => {
// cy.get('.ant-row-flex').within(() => {
// cy.get('.anticon-star').should('have.css', 'color').then($iconStarCss => {
// iconStarCss = $iconStarCss
// expect(iconStarCss).to.be.eq('rgb(36, 36, 36)')
// });
// });
// });
// });
} ) ;
} ) ;