Skip to content

Commit c41095f

Browse files
author
Kawika Avilla
committed
invert boolean
Signed-off-by: Kawika Avilla <avillk@amazon.com>
1 parent 6ec9632 commit c41095f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypress/utils/dashboards/data_explorer/commands.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ Cypress.Commands.add('switchDiscoverTable', (name) => {
142142
cy.getElementByTestId('discoverOptionsLegacySwitch').then(
143143
($switchButton) => {
144144
const isLegacyChecked = $switchButton.checked;
145-
if (name === 'new' && isLegacyChecked) {
145+
if (name === 'new' && !isLegacyChecked) {
146146
cy.wrap($switchButton).click();
147147
}
148-
if (name === 'legacy' && !isLegacyChecked) {
148+
if (name === 'legacy' && isLegacyChecked) {
149149
cy.wrap($switchButton).click();
150150
}
151151
cy.waitForLoader();

0 commit comments

Comments
 (0)