test: custom grid buttons (#19073)

[skip ci]
This commit is contained in:
Ankush Menat 2022-12-01 13:16:00 +05:30 committed by GitHub
parent 3885833764
commit c1f3cb101c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,16 @@
context("Assignment Rule", () => {
before(() => {
cy.login();
});
it("Custom grid buttons work", () => {
cy.new_form("Assignment Rule");
cy.findByRole("button", { name: "All Days" }).should("be.visible").click();
cy.wait(2000);
cy.window()
.its("cur_frm")
.then((frm) => {
expect(frm.doc.assignment_days.length).to.equal(7);
});
});
});