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

Function assertFieldValidationError

cypress/utils/steps.js:627–630  ·  view source on GitHub ↗
({ message, fieldLabel })

Source from the content-addressed store, hash-verified

625}
626
627function assertFieldValidationError({ message, fieldLabel }) {
628 cy.contains('label', fieldLabel).siblings('ul[class*=ControlErrorsList]').contains(message);
629 assertFieldErrorStatus(fieldLabel, colorError);
630}
631
632function assertFieldErrorStatus(label, color, opts = { isMarkdown: false }) {
633 assertColorOn('background-color', color, {

Calls 1

assertFieldErrorStatusFunction · 0.85

Tested by

no test coverage detected