(colors = ['', ''], alias)
| 651 | } |
| 652 | |
| 653 | function 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 | |
| 668 | module.exports = { |
| 669 | login, |
no test coverage detected