(entry)
| 431 | } |
| 432 | |
| 433 | function duplicateEntry(entry) { |
| 434 | selectDropdownItem('Published', 'Duplicate'); |
| 435 | cy.url().should('contain', '/#/collections/posts/new'); |
| 436 | flushClockAndSave(); |
| 437 | updateWorkflowStatusInEditor(editorStatus.ready); |
| 438 | publishEntryInEditor(publishTypes.publishNow); |
| 439 | exitEditor(); |
| 440 | cy.get('a h2').should($h2s => { |
| 441 | expect($h2s.eq(0)).to.contain(entry.title); |
| 442 | expect($h2s.eq(1)).to.contain(entry.title); |
| 443 | }); |
| 444 | } |
| 445 | |
| 446 | function validateObjectFields({ limit, author }) { |
| 447 | cy.get('a[href^="#/collections/settings"]').click(); |
no test coverage detected