MCPcopy Create free account
hub / github.com/decaporg/decap-cms / validateObjectFields

Function validateObjectFields

cypress/utils/steps.js:446–458  ·  view source on GitHub ↗
({ limit, author })

Source from the content-addressed store, hash-verified

444}
445
446function 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
460function validateNestedObjectFields({ limit, author }) {
461 cy.get('a[href^="#/collections/settings"]').click();

Callers 1

Calls 3

assertNotificationFunction · 0.85
assertFieldErrorStatusFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected