mirror of
https://github.com/sartography/spiffworkflow-frontend.git
synced 2025-02-23 19:58:25 +00:00
fix two flaky test issues
This commit is contained in:
parent
56e8efb76c
commit
35c7d247d6
@ -165,7 +165,8 @@ describe('process-instances', () => {
|
||||
cy.getBySel(`process-instance-status-${processStatus}`).contains(
|
||||
processStatus
|
||||
);
|
||||
cy.get('button[aria-label=Remove]').click();
|
||||
// there should really only be one, but in CI there are sometimes more
|
||||
cy.get('button[aria-label=Remove]:first').click();
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -47,6 +47,10 @@ Cypress.Commands.add('login', (selector, ...args) => {
|
||||
|
||||
Cypress.Commands.add('logout', (selector, ...args) => {
|
||||
cy.getBySel('logout-button').click();
|
||||
|
||||
// otherwise we can click logout, quickly load the next page, and the javascript
|
||||
// doesn't have time to actually sign you out
|
||||
cy.contains('Sign in to your account');
|
||||
});
|
||||
|
||||
Cypress.Commands.add('createGroup', (groupId, groupDisplayName) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user