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