test: cypress shouldn't expect disabled actions
This commit is contained in:
parent
75b0142c1c
commit
b696e23354
1 changed files with 1 additions and 3 deletions
|
|
@ -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]);
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue