From 71c38c957dceededa3f3331ade7121d01fec280c Mon Sep 17 00:00:00 2001 From: AtofStryker Date: Mon, 11 Mar 2024 13:00:27 -0400 Subject: [PATCH] fix linting issue by breaking chainable up --- cypress/support/commands.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 87f7d86a5..64e63b6ab 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -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")