From 0a88830c1d0522585c082a8a6d77429ff9de4ed2 Mon Sep 17 00:00:00 2001 From: Kruchinin Date: Thu, 12 Nov 2020 12:50:56 +0300 Subject: [PATCH] Changing the logic for checking the state of objects --- .../actions_tasks_objects/case_17_lock_hide_features.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/cypress/integration/actions_tasks_objects/case_17_lock_hide_features.js b/tests/cypress/integration/actions_tasks_objects/case_17_lock_hide_features.js index 4f68f8a0..3a86689f 100644 --- a/tests/cypress/integration/actions_tasks_objects/case_17_lock_hide_features.js +++ b/tests/cypress/integration/actions_tasks_objects/case_17_lock_hide_features.js @@ -198,9 +198,10 @@ context('Lock/hide features.', () => { cy.get('#cvat_canvas_shape_1').should('have.class', 'cvat_canvas_shape_draggable'); }); it('Go to "Labels" tab.', () => { - // Hide all objects for convenience of next testing. + // Hide and unhide all objects for convenience of next testing. cy.get('.cvat-objects-sidebar-states-header').within(() => { cy.get('i[aria-label="icon: eye"]').click(); + cy.get('i[aria-label="icon: eye-invisible"]').click(); }); cy.get('.cvat-objects-sidebar').within(() => { cy.contains('Labels').click(); @@ -209,9 +210,9 @@ context('Lock/hide features.', () => { it('Repeat hide/lock for one of the labels. Objects with other labels weren’t affected.', () => { const objectsSameLabel = ['cvat_canvas_shape_1', 'cvat_canvas_shape_2', 'cvat_canvas_shape_3']; cy.get('.cvat-objects-sidebar-labels-list').within(() => { - // Unhide all object with "Main task" label (#cvat_canvas_shape_1-3). + // Hide all object with "Main task" label (#cvat_canvas_shape_1-3). cy.contains(labelName).parents('.cvat-objects-sidebar-label-item').within(() => { - cy.get('i[aria-label="icon: eye-invisible"]').click(); + cy.get('i[aria-label="icon: eye"]').click(); cy.get('i[aria-label="icon: unlock"]').click(); }); }); @@ -219,7 +220,7 @@ context('Lock/hide features.', () => { for (let i=0; i