mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-03 05:03:27 +00:00
attempted to fix some cypress tests
This commit is contained in:
parent
0ae74f8f35
commit
d2d0e7e992
@ -162,7 +162,7 @@ describe('process-instances', () => {
|
|||||||
cy.getBySel('process-instance-log-list-link').click();
|
cy.getBySel('process-instance-log-list-link').click();
|
||||||
cy.getBySel('process-instance-log-detailed').click();
|
cy.getBySel('process-instance-log-detailed').click();
|
||||||
cy.contains('process_model_one');
|
cy.contains('process_model_one');
|
||||||
cy.contains('State change to COMPLETED');
|
cy.contains('task_completed');
|
||||||
cy.basicPaginationTest();
|
cy.basicPaginationTest();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -184,9 +184,12 @@ describe('process-instances', () => {
|
|||||||
cy.getBySel(`process-instance-status-${processStatus}`);
|
cy.getBySel(`process-instance-status-${processStatus}`);
|
||||||
// there should really only be one, but in CI there are sometimes more
|
// there should really only be one, but in CI there are sometimes more
|
||||||
cy.get('div[aria-label="Clear all selected items"]:first').click();
|
cy.get('div[aria-label="Clear all selected items"]:first').click();
|
||||||
|
cy.wait(1000);
|
||||||
cy.get('div[aria-label="Clear all selected items"]').should(
|
cy.get('div[aria-label="Clear all selected items"]').should(
|
||||||
'not.exist'
|
'not.exist'
|
||||||
);
|
);
|
||||||
|
// it seems like the state isn't clearing as quickly as the clear label so let's wait
|
||||||
|
cy.wait(1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -154,6 +154,10 @@ Cypress.Commands.add(
|
|||||||
.then(($element) => {
|
.then(($element) => {
|
||||||
const oldId = $element.text().trim();
|
const oldId = $element.text().trim();
|
||||||
cy.get('.cds--pagination__button--forward').click();
|
cy.get('.cds--pagination__button--forward').click();
|
||||||
|
cy.contains(
|
||||||
|
`[data-qa=${dataQaTagToUseToEnsureTableHasLoaded}]`,
|
||||||
|
oldId
|
||||||
|
).should('not.exist');
|
||||||
cy.contains(/\b3–4 of \d+/);
|
cy.contains(/\b3–4 of \d+/);
|
||||||
cy.get('.cds--pagination__button--backward').click();
|
cy.get('.cds--pagination__button--backward').click();
|
||||||
cy.contains(/\b1–2 of \d+/);
|
cy.contains(/\b1–2 of \d+/);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user