diff --git a/cypress/integration/control_attach.js b/cypress/integration/control_attach.js index 6714f6c24e..ddaa22884d 100644 --- a/cypress/integration/control_attach.js +++ b/cypress/integration/control_attach.js @@ -29,7 +29,8 @@ context("Attach Control", () => { //Clicking on "Link" button to attach a file using the "Link" button cy.findByRole("button", { name: "Link" }).click(); cy.findByPlaceholderText("Attach a web link").type( - "https://wallpaperplay.com/walls/full/8/2/b/72402.jpg" + "https://wallpaperplay.com/walls/full/8/2/b/72402.jpg", + { force: true } ); //Clicking on the Upload button to upload the file diff --git a/cypress/integration/sidebar.js b/cypress/integration/sidebar.js index c8aa2a441b..7510425db3 100644 --- a/cypress/integration/sidebar.js +++ b/cypress/integration/sidebar.js @@ -81,7 +81,7 @@ context("Sidebar", () => { // test "Show All" button cy.get(".attachment-row").should("have.length", 10); - cy.get(".show-all-btn").click(); + cy.get(".show-all-btn").click({ force: true }); cy.get(".attachment-row").should("have.length", 12); }); }); @@ -120,7 +120,7 @@ context("Sidebar", () => { ).click(); //To check if filter is applied - cy.click_filter_button().should("contain", "1 filter"); + cy.click_filter_button().get(".filter-label").should("contain", "1"); cy.get(".fieldname-select-area > .awesomplete > .form-control").should( "have.value", "Assigned To" diff --git a/frappe/public/js/frappe/form/templates/form_sidebar.html b/frappe/public/js/frappe/form/templates/form_sidebar.html index 447e71514e..60d2a4ae60 100644 --- a/frappe/public/js/frappe/form/templates/form_sidebar.html +++ b/frappe/public/js/frappe/form/templates/form_sidebar.html @@ -56,21 +56,22 @@
- - - +