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

Function assertFieldErrorStatus

cypress/utils/steps.js:632–645  ·  view source on GitHub ↗
(label, color, opts = { isMarkdown: false })

Source from the content-addressed store, hash-verified

630}
631
632function assertFieldErrorStatus(label, color, opts = { isMarkdown: false }) {
633 assertColorOn('background-color', color, {
634 type: 'label',
635 label,
636 scope: opts.scope,
637 isMarkdown: opts.isMarkdown,
638 });
639 assertColorOn('border-color', color, {
640 type: 'field',
641 label,
642 scope: opts.scope,
643 isMarkdown: opts.isMarkdown,
644 });
645}
646
647function assertListControlErrorStatus(colors = ['', ''], alias) {
648 cy.get(alias).within(() => {

Callers 4

validateObjectFieldsFunction · 0.85
validateListFieldsFunction · 0.85
validateNestedListFieldsFunction · 0.85

Calls 1

assertColorOnFunction · 0.85

Tested by

no test coverage detected