Prettify code

This commit is contained in:
Ramon Wenger 2021-07-07 11:41:34 +02:00
parent 0ae9ccaa68
commit 7d5fd5cff6
1 changed files with 1 additions and 6 deletions

View File

@ -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);
});