Skip to content

Commit

Permalink
remove redundant code on clickSidebarCollapseBtn()
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Silva <[email protected]>
  • Loading branch information
silvaf-dev committed Jan 7, 2025
1 parent e370408 commit 2c3aaf5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ export const sendQueryOnMultilineEditor = (query) => {
export const clickSidebarCollapseBtn = (collapse = true) => {
if (collapse) {
cy.getElementByTestId('euiResizableButton').trigger('mouseover').click();
cy.get('.euiResizableToggleButton').click({ force: true });
} else {
cy.get('.euiResizableToggleButton').click({ force: true });
}
cy.get('.euiResizableToggleButton').click({ force: true });
};

/**
Expand Down

0 comments on commit 2c3aaf5

Please sign in to comment.