(colors = ['', ''], alias)
| 645 | } |
| 646 | |
| 647 | function 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 | |
| 662 | module.exports = { |
| 663 | login, |
no test coverage detected