From c1f3cb101c08b3e8ac6dfc57daba0d5e867ff647 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 1 Dec 2022 13:16:00 +0530 Subject: [PATCH] test: custom grid buttons (#19073) [skip ci] --- cypress/integration/assignment_rule.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cypress/integration/assignment_rule.js diff --git a/cypress/integration/assignment_rule.js b/cypress/integration/assignment_rule.js new file mode 100644 index 0000000000..5431561272 --- /dev/null +++ b/cypress/integration/assignment_rule.js @@ -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); + }); + }); +});