(entry)
| 343 | } |
| 344 | |
| 345 | function createPostPublishAndCreateNew(entry) { |
| 346 | newPost(); |
| 347 | populateEntry(entry, () => publishEntry({ createNew: true })); |
| 348 | cy.url().should('eq', `http://localhost:8080/#/collections/posts/new`); |
| 349 | // TODO: fix this test |
| 350 | // previous entry data is somehow not cleared from the editor when opening new post |
| 351 | // cy.get('[id^="title-field"]').should('have.value', ''); |
| 352 | |
| 353 | exitEditor(); |
| 354 | } |
| 355 | |
| 356 | function createPostPublishAndDuplicate(entry) { |
| 357 | newPost(); |
no test coverage detected