Skip to content

Commit

Permalink
fix linting issue by breaking chainable up
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker committed Mar 11, 2024
1 parent 6cf0b49 commit 71c38c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ Cypress.Commands.add("reactComponent", { prevSubject: "element" }, ($el) => {
});

Cypress.Commands.add("setTransactionAmountRange", (min, max) => {
// eslint-disable-next-line cypress/unsafe-to-chain-command
cy.getBySel("transaction-list-filter-amount-range-button")
.scrollIntoView()
.click({ force: true });
cy.getBySel("transaction-list-filter-amount-range-button").scrollIntoView();
cy.getBySel("transaction-list-filter-amount-range-button").click({ force: true });

return cy
.getBySelLike("filter-amount-range-slider")
Expand Down

0 comments on commit 71c38c9

Please sign in to comment.