From b696e2335472794a84ed38fa736d92aaf3d1122f Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Thu, 4 Apr 2024 15:14:26 +0200 Subject: [PATCH] test: cypress shouldn't expect disabled actions --- cypress/integration/list_view.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cypress/integration/list_view.js b/cypress/integration/list_view.js index 0618afb9ec..16e0b13d5b 100644 --- a/cypress/integration/list_view.js +++ b/cypress/integration/list_view.js @@ -22,21 +22,19 @@ context("List View", () => { const actions = [ "Approve", "Reject", - "Edit", "Export", "Assign To", "Clear Assignment", "Apply Assignment Rule", "Add Tags", "Print", - "Delete", ]; cy.go_to_list("ToDo"); cy.clear_filters(); cy.get(".list-header-subject > .list-subject > .list-check-all").click(); cy.findByRole("button", { name: "Actions" }).click(); cy.get(".dropdown-menu li:visible .dropdown-item") - .should("have.length", 10) + .should("have.length", 8) .each((el, index) => { cy.wrap(el).contains(actions[index]); })