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