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

Function assertListControlErrorStatus

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

Source from the content-addressed store, hash-verified

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

Callers 2

validateListFieldsFunction · 0.85
validateNestedListFieldsFunction · 0.85

Calls 2

assertColorOnFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected