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

Function assertListControlErrorStatus

cypress/utils/steps.js:647–660  ·  view source on GitHub ↗
(colors = ['', ''], alias)

Source from the content-addressed store, hash-verified

645}
646
647function assertListControlErrorStatus(colors = ['', ''], alias) {
648 cy.get(alias).within(() => {
649 // assert list item border has correct color
650 assertColorOn('border-right-color', colors[0], {
651 el: cy.root().children().eq(2),
652 });
653 // collapse list item
654 cy.get('button[class*=TopBarButton-button]').first().click();
655 // assert list item label text has correct color
656 assertColorOn('color', colors[1], { el: cy.get('div[class*=NestedObjectLabel]').first() });
657 // uncollapse list item
658 cy.get('button[class*=TopBarButton-button]').first().click();
659 });
660}
661
662module.exports = {
663 login,

Callers 2

validateListFieldsFunction · 0.85
validateNestedListFieldsFunction · 0.85

Calls 2

assertColorOnFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected