(entry)
| 242 | } |
| 243 | |
| 244 | function publishAndDuplicateEntryInEditor(entry) { |
| 245 | selectDropdownItem('Publish', publishTypes.publishAndDuplicate); |
| 246 | assertNotification(notifications.published); |
| 247 | cy.url().should('eq', `http://localhost:8080/#/collections/posts/new`); |
| 248 | cy.get('[id^="title-field"]').should('have.value', entry.title); |
| 249 | } |
| 250 | |
| 251 | function selectDropdownItem(label, item) { |
| 252 | cy.contains('[role="button"]', label).as('dropDownButton'); |
no test coverage detected