From 4ab216256e76fce154d0840105709f2ad87a1ba6 Mon Sep 17 00:00:00 2001 From: Kirill Lakhov Date: Mon, 2 Oct 2023 12:33:42 +0300 Subject: [PATCH] Try to fix unstable `case_69` (#6926) --- .../registration_involved/case_69_filters_sorting_jobs.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/cypress/e2e/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js b/tests/cypress/e2e/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js index cb395d905cd5..4a35daf6ae7a 100644 --- a/tests/cypress/e2e/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js +++ b/tests/cypress/e2e/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js @@ -67,6 +67,7 @@ context('Filtering, sorting jobs.', () => { cy.contains('.cvat-switch-filters-constructor-button', 'Filter').click(); cy.get('.cvat-resource-page-filters-builder').within(() => { cy.contains('button', 'Add rule').click(); + cy.contains('.ant-select-selector', 'Select field').should('be.visible'); cy.contains('.ant-select-selector', 'Select field').get('input').last().type(`${column}{enter}`); cy.get('.ant-select-selector').last().get('input').last().type(`${menuItem}`); if (column !== 'Assignee') { @@ -84,6 +85,7 @@ context('Filtering, sorting jobs.', () => { cy.contains('button', 'Apply').click(); }); } + cy.get('.cvat-resource-page-filters-builder').should('not.exist'); } function testSetJobSorting({ column, reset }) { @@ -100,6 +102,7 @@ context('Filtering, sorting jobs.', () => { cy.get('.cvat-resource-page-sorting-list').trigger('mouseup', 'top'); cy.get('.cvat-jobs-list-filters-wrapper').click(); } + cy.get('.cvat-resource-page-sorting-list').should('not.exist'); } before(() => { @@ -187,11 +190,14 @@ context('Filtering, sorting jobs.', () => { testSetJobFilter({ column: 'State', menuItem: 'new' }); checkJobsTableRowCount(2); testSetJobFilter({ reset: true }); + checkJobsTableRowCount(3); }); it('Filtering jobs by validation, new, assignee to user.', () => { testSetJobFilter({ column: 'Stage', menuItem: 'validation' }); + checkJobsTableRowCount(1); testSetJobFilter({ column: 'State', menuItem: 'new' }); + checkJobsTableRowCount(1); testSetJobFilter({ column: 'Assignee', menuItem: secondUserName }); checkJobsTableRowCount(1); checkContentsRow(0, 'validation', 'New', secondUserName);