Skip to content

Commit

Permalink
invert boolean
Browse files Browse the repository at this point in the history
Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
Kawika Avilla committed Mar 18, 2024
1 parent 6ec9632 commit c41095f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/utils/dashboards/data_explorer/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ Cypress.Commands.add('switchDiscoverTable', (name) => {
cy.getElementByTestId('discoverOptionsLegacySwitch').then(
($switchButton) => {
const isLegacyChecked = $switchButton.checked;
if (name === 'new' && isLegacyChecked) {
if (name === 'new' && !isLegacyChecked) {
cy.wrap($switchButton).click();
}
if (name === 'legacy' && !isLegacyChecked) {
if (name === 'legacy' && isLegacyChecked) {
cy.wrap($switchButton).click();
}
cy.waitForLoader();
Expand Down

0 comments on commit c41095f

Please sign in to comment.