(entry)
| 184 | } |
| 185 | |
| 186 | function assertPublishedEntry(entry) { |
| 187 | if (Array.isArray(entry)) { |
| 188 | const entries = entry.reverse(); |
| 189 | cy.get('a h2').then(els => { |
| 190 | cy.wrap(els.slice(0, entries.length)).each((el, idx) => { |
| 191 | cy.wrap(el).contains(entries[idx].title); |
| 192 | }); |
| 193 | }); |
| 194 | } else { |
| 195 | cy.get('a h2').first().contains(entry.title); |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | function deleteEntryInEditor() { |
| 200 | cy.contains('button', 'Delete').click(); |
no test coverage detected