(message)
| 63 | } |
| 64 | |
| 65 | function assertNotification(message) { |
| 66 | // if clock is use, a tick is needed for toastify to show the notifications |
| 67 | withExistingClock(clock => { |
| 68 | advanceClock(clock); |
| 69 | }); |
| 70 | cy.get('.notif__container').within(() => { |
| 71 | cy.contains(message); |
| 72 | cy.contains(message).invoke('hide'); |
| 73 | }); |
| 74 | } |
| 75 | |
| 76 | function assertColorOn(cssProperty, color, opts) { |
| 77 | if (opts.type && opts.type === 'label') { |
no test coverage detected