Skip to content

Commit

Permalink
Try to fix unstable case_69 (#6926)
Browse files Browse the repository at this point in the history
  • Loading branch information
klakhov authored Oct 2, 2023
1 parent 7ce2c37 commit 92906a7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -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 }) {
Expand All @@ -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(() => {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 92906a7

Please sign in to comment.