dedup
This commit is contained in:
parent
c822ecea67
commit
19942b8785
|
@ -169,14 +169,13 @@ describe('process-instances', () => {
|
||||||
cy.getBySel('process-instance-list-link').click();
|
cy.getBySel('process-instance-list-link').click();
|
||||||
cy.assertAtLeastOneItemInPaginatedResults();
|
cy.assertAtLeastOneItemInPaginatedResults();
|
||||||
|
|
||||||
|
const statusSelect = '#process-instance-status-select';
|
||||||
PROCESS_STATUSES.forEach((processStatus) => {
|
PROCESS_STATUSES.forEach((processStatus) => {
|
||||||
if (!['all', 'waiting'].includes(processStatus)) {
|
if (!['all', 'waiting'].includes(processStatus)) {
|
||||||
cy.get('#process-instance-status-select').click();
|
cy.get(statusSelect).click();
|
||||||
cy.get('#process-instance-status-select')
|
cy.get(statusSelect).contains(processStatus).click();
|
||||||
.contains(processStatus)
|
|
||||||
.click();
|
|
||||||
// close the dropdown again
|
// close the dropdown again
|
||||||
cy.get('#process-instance-status-select').click();
|
cy.get(statusSelect).click();
|
||||||
cy.getBySel('filter-button').click();
|
cy.getBySel('filter-button').click();
|
||||||
cy.assertAtLeastOneItemInPaginatedResults();
|
cy.assertAtLeastOneItemInPaginatedResults();
|
||||||
cy.getBySel(`process-instance-status-${processStatus}`).contains(
|
cy.getBySel(`process-instance-status-${processStatus}`).contains(
|
||||||
|
|
Loading…
Reference in New Issue