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