mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-02 20:53:33 +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-detailed').click();
|
||||
cy.contains('process_model_one');
|
||||
cy.contains('State change to COMPLETED');
|
||||
cy.contains('task_completed');
|
||||
cy.basicPaginationTest();
|
||||
});
|
||||
|
||||
@ -184,9 +184,12 @@ describe('process-instances', () => {
|
||||
cy.getBySel(`process-instance-status-${processStatus}`);
|
||||
// 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.wait(1000);
|
||||
cy.get('div[aria-label="Clear all selected items"]').should(
|
||||
'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) => {
|
||||
const oldId = $element.text().trim();
|
||||
cy.get('.cds--pagination__button--forward').click();
|
||||
cy.contains(
|
||||
`[data-qa=${dataQaTagToUseToEnsureTableHasLoaded}]`,
|
||||
oldId
|
||||
).should('not.exist');
|
||||
cy.contains(/\b3–4 of \d+/);
|
||||
cy.get('.cds--pagination__button--backward').click();
|
||||
cy.contains(/\b1–2 of \d+/);
|
||||
|
Loading…
x
Reference in New Issue
Block a user