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

Function validateObjectFields

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

Source from the content-addressed store, hash-verified

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