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

Function assertFieldErrorStatus

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

Source from the content-addressed store, hash-verified

636}
637
638function assertFieldErrorStatus(label, color, opts = { isMarkdown: false }) {
639 assertColorOn('background-color', color, {
640 type: 'label',
641 label,
642 scope: opts.scope,
643 isMarkdown: opts.isMarkdown,
644 });
645 assertColorOn('border-color', color, {
646 type: 'field',
647 label,
648 scope: opts.scope,
649 isMarkdown: opts.isMarkdown,
650 });
651}
652
653function assertListControlErrorStatus(colors = ['', ''], alias) {
654 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