Prettify code
This commit is contained in:
parent
0ae9ccaa68
commit
7d5fd5cff6
|
|
@ -191,12 +191,7 @@ Cypress.Commands.add('fakeLogin', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
Cypress.Commands.add('canReopen', (exists) => {
|
Cypress.Commands.add('canReopen', (exists) => {
|
||||||
let check;
|
let check = exists ? 'exist' : 'not.exist';
|
||||||
if (exists) {
|
|
||||||
check = 'exist';
|
|
||||||
} else {
|
|
||||||
check = 'not.exist';
|
|
||||||
}
|
|
||||||
cy.getByDataCy('final-submission-reopen').should(check);
|
cy.getByDataCy('final-submission-reopen').should(check);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue