From 1d0642af7ec03b97635d1374cb077354b9295819 Mon Sep 17 00:00:00 2001 From: dvkruchinin Date: Thu, 7 Oct 2021 16:18:09 +0300 Subject: [PATCH 1/4] Additional fix case 28 --- .../case_28_review_pipeline_feature.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/cypress/integration/actions_users/registration_involved/case_28_review_pipeline_feature.js b/tests/cypress/integration/actions_users/registration_involved/case_28_review_pipeline_feature.js index 1a2c57c39286..6b4edad84f23 100644 --- a/tests/cypress/integration/actions_users/registration_involved/case_28_review_pipeline_feature.js +++ b/tests/cypress/integration/actions_users/registration_involved/case_28_review_pipeline_feature.js @@ -341,8 +341,9 @@ context('Review pipeline feature', () => { it('Go to "Issues" tab at right sidebar and select an issue.', () => { cy.get('.cvat-objects-sidebar').within(() => { - cy.contains('Issues').click(); + cy.contains('[role="tab"]', 'Issues').click().should('have.attr', 'aria-selected', 'true'); }); + cy.get('.cvat-objects-sidebar-issues-list-header').should('be.visible'); cy.get('.cvat-objects-sidebar-issue-item').then((sidebarIssueItems) => { cy.get('.cvat-hidden-issue-label').then((issueLabels) => { expect(sidebarIssueItems.length).to.be.equal(issueLabels.length); @@ -365,10 +366,10 @@ context('Review pipeline feature', () => { it('Issue navigation. Navigation works and go only to frames with issues.', () => { cy.get('.cvat-issues-sidebar-previous-frame').should('have.attr', 'style').and('contain', 'opacity: 0.5;'); // The element is not active - cy.get('.cvat-issues-sidebar-next-frame').trigger('mouseout').click(); + cy.get('.cvat-issues-sidebar-next-frame').should('be.visible').click(); cy.checkFrameNum(2); // Frame changed to 2 cy.get('.cvat-issues-sidebar-next-frame').should('have.attr', 'style').and('contain', 'opacity: 0.5;'); // The element is not active - cy.get('.cvat-issues-sidebar-previous-frame').trigger('mouseout').click(); + cy.get('.cvat-issues-sidebar-previous-frame').should('be.visible').click(); cy.checkFrameNum(0); // Frame changed to 0 }); From 2545f621f1715c073a9157272def11acc1ff44c8 Mon Sep 17 00:00:00 2001 From: dvkruchinin Date: Fri, 8 Oct 2021 09:48:03 +0300 Subject: [PATCH 2/4] Fix case 69 --- .../registration_involved/case_69_filters_sorting_jobs.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/cypress/integration/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js b/tests/cypress/integration/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js index 1255085b1807..a37cb233a924 100644 --- a/tests/cypress/integration/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js +++ b/tests/cypress/integration/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js @@ -59,10 +59,9 @@ context('Filters, sorting jobs.', () => { } function testSetJobFilter({ column, menuItem, reset }) { - cy.get(column).find('[role="button"]').click().wait(300); // Waiting for dropdown menu transition + cy.get(column).find('[role="button"]').trigger('mouseover').click().wait(300); // Waiting for dropdown menu transition cy.get('.ant-dropdown') .not('.ant-dropdown-hidden') - .should('not.have.attr', 'style', 'poiner-events') .within(() => { if (!reset) { cy.contains('[role="menuitem"]', menuItem) @@ -70,9 +69,9 @@ context('Filters, sorting jobs.', () => { .should('not.be.checked') .check() .should('be.checked'); - cy.contains('[type="button"]', 'OK').click(); + cy.contains('[type="button"]', 'OK').should('be.visible').click(); } else { - cy.contains('[type="button"]', 'Reset').click(); + cy.contains('[type="button"]', 'Reset').should('be.visible').click(); } }); } From 2d3f3d5c32d9cdfb68db7aba3cb703d8300fe440 Mon Sep 17 00:00:00 2001 From: dvkruchinin Date: Fri, 8 Oct 2021 13:18:16 +0300 Subject: [PATCH 3/4] Additional fix case 31. --- .../case_31_label_constructor_color_name_label.js | 2 ++ tests/cypress/support/commands.js | 1 + 2 files changed, 3 insertions(+) diff --git a/tests/cypress/integration/actions_tasks2/case_31_label_constructor_color_name_label.js b/tests/cypress/integration/actions_tasks2/case_31_label_constructor_color_name_label.js index b87dabfd9e8a..1236b48a48d2 100644 --- a/tests/cypress/integration/actions_tasks2/case_31_label_constructor_color_name_label.js +++ b/tests/cypress/integration/actions_tasks2/case_31_label_constructor_color_name_label.js @@ -151,6 +151,7 @@ context('Label constructor. Color label. Label name editing', () => { cy.contains('hex').prev().clear().type(labelColor.yellowHex); cy.contains('button', 'Cancel').click(); }); + cy.get('.cvat-label-color-picker').should('be.hidden'); cy.get('.cvat-change-task-label-color-badge') .children() .invoke('attr', 'style') @@ -170,6 +171,7 @@ context('Label constructor. Color label. Label name editing', () => { .within(() => { cy.contains('button', 'Reset').click(); }); + cy.get('.cvat-label-color-picker').should('be.hidden'); cy.get('.cvat-change-task-label-color-badge') .children() .should('have.attr', 'style') diff --git a/tests/cypress/support/commands.js b/tests/cypress/support/commands.js index dcb5ba0abb45..92b0b66cfa45 100644 --- a/tests/cypress/support/commands.js +++ b/tests/cypress/support/commands.js @@ -587,6 +587,7 @@ Cypress.Commands.add('changeColorViaBadge', (labelColor) => { cy.contains('hex').prev().clear().type(labelColor); cy.contains('button', 'Ok').click(); }); + cy.get('.cvat-label-color-picker').should('be.hidden'); }); Cypress.Commands.add('collectLabelsName', () => { From c712eeb597bd1094496ac48fb6487bd17ff9627d Mon Sep 17 00:00:00 2001 From: dvkruchinin Date: Fri, 8 Oct 2021 13:28:43 +0300 Subject: [PATCH 4/4] case 69 --- .../registration_involved/case_69_filters_sorting_jobs.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/cypress/integration/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js b/tests/cypress/integration/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js index a37cb233a924..fbad28479397 100644 --- a/tests/cypress/integration/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js +++ b/tests/cypress/integration/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js @@ -74,6 +74,7 @@ context('Filters, sorting jobs.', () => { cy.contains('[type="button"]', 'Reset').should('be.visible').click(); } }); + cy.get('.ant-dropdown').last().should('be.hidden'); } before(() => {