({ limit, author })
| 444 | } |
| 445 | |
| 446 | function validateObjectFields({ limit, author }) { |
| 447 | cy.get('a[href^="#/collections/settings"]').click(); |
| 448 | cy.get('a[href^="#/collections/settings/entries/general"]').click(); |
| 449 | cy.get('input[type=number]').type(limit); |
| 450 | cy.contains('button', 'Save').click(); |
| 451 | assertNotification(notifications.error.missingField); |
| 452 | assertFieldErrorStatus('Default Author', colorError); |
| 453 | cy.contains('label', 'Default Author').click(); |
| 454 | cy.focused().type(author); |
| 455 | cy.contains('button', 'Save').click(); |
| 456 | assertNotification(notifications.saved); |
| 457 | assertFieldErrorStatus('Default Author', colorNormal); |
| 458 | } |
| 459 | |
| 460 | function validateNestedObjectFields({ limit, author }) { |
| 461 | cy.get('a[href^="#/collections/settings"]').click(); |
no test coverage detected