Skip to content

Commit

Permalink
Cypress tests for status bar and layout background
Browse files Browse the repository at this point in the history
  • Loading branch information
gracec20 committed Nov 4, 2024
1 parent 8b06b1d commit e17d0b9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,28 @@ Cypress.Commands.add('openToolbarMenuForPlaylist', function(menuIdx) {
});
});

// Open Options Menu within the Layout Editor
Cypress.Commands.add('openOptionsMenu', () => {
cy.get('.navbar-submenu')
.should('be.visible')
.within(() => {
cy.get('#optionsContainerTop')
.should('be.visible')
.and('not.be.disabled')
.click({force: true})
.should('have.attr', 'aria-expanded', 'true');
});
});

// Open Row Menu of the first item on the Layouts page
Cypress.Commands.add('openRowMenu', () => {
cy.get('#layouts tbody tr').first().within(() => {
cy.get('.btn-group .btn.dropdown-toggle')
.click()
.should('have.attr', 'aria-expanded', 'true');
});
});


/**
* Update data on CKEditor instance
Expand Down

0 comments on commit e17d0b9

Please sign in to comment.