From 9adea285a37a77e2531d6729dfb1769b00dfa992 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 16 Nov 2023 14:55:16 +0530 Subject: [PATCH] test: fixed failing Customize Form UI test --- cypress/integration/customize_form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/customize_form.js b/cypress/integration/customize_form.js index aa212ee0f9..bd8ca1d73b 100644 --- a/cypress/integration/customize_form.js +++ b/cypress/integration/customize_form.js @@ -4,8 +4,9 @@ context("Customize Form", () => { cy.visit("/app/customize-form"); }); it("Changing to naming rule should update autoname", () => { - cy.findByRole("tab", { name: "Details" }).click(); cy.fill_field("doc_type", "ToDo", "Link").blur(); + cy.wait(2000); + cy.findByRole("tab", { name: "Details" }).click(); cy.click_form_section("Naming"); const naming_rule_default_autoname_map = { "Set by user": "prompt", @@ -16,7 +17,6 @@ context("Customize Form", () => { "By script": "", }; Cypress._.forOwn(naming_rule_default_autoname_map, (value, naming_rule) => { - cy.findByRole("tab", { name: "Details" }).click(); cy.fill_field("naming_rule", naming_rule, "Select"); cy.get_field("autoname", "Data").should("have.value", value); });