test: cypress shouldn't expect disabled actions

This commit is contained in:
barredterra 2024-04-04 15:14:26 +02:00
parent 75b0142c1c
commit b696e23354

View file

@ -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]);
})