diff --git a/cypress/integration/workspace.js b/cypress/integration/workspace.js index 4079877c9c..0f8e24c82f 100644 --- a/cypress/integration/workspace.js +++ b/cypress/integration/workspace.js @@ -18,7 +18,7 @@ context("Workspace 2.0", () => { }).as("new_page"); cy.get(".codex-editor__redactor .ce-block"); - cy.get('.custom-actions button[data-label="Create%20Workspace"]').click(); + cy.get('.workspace-footer button[data-label="New"]').click(); cy.fill_field("title", "Test Private Page", "Data"); cy.get_open_dialog().find(".modal-header").click(); cy.get_open_dialog().find(".btn-primary").click(); @@ -48,7 +48,7 @@ context("Workspace 2.0", () => { }).as("new_page"); cy.get(".codex-editor__redactor .ce-block"); - cy.get('.custom-actions button[data-label="Create%20Workspace"]').click(); + cy.get('.workspace-footer button[data-label="New"]').click(); cy.fill_field("title", "Test Child Page", "Data"); cy.fill_field("parent", "Test Private Page", "Select"); cy.get_open_dialog().find(".modal-header").click(); @@ -196,7 +196,7 @@ context("Workspace 2.0", () => { }).as("hide_page"); cy.get(".codex-editor__redactor .ce-block"); - cy.get(".standard-actions .btn-secondary[data-label=Edit]").click(); + cy.get(".workspace-footer .btn-secondary[data-label=Edit]").click(); cy.get('.sidebar-item-container[item-name="Duplicate Page"]') .find(".sidebar-item-control .setting-btn") @@ -217,7 +217,7 @@ context("Workspace 2.0", () => { }).as("unhide_page"); cy.get(".codex-editor__redactor .ce-block"); - cy.get(".standard-actions .btn-secondary[data-label=Edit]").click(); + cy.get(".workspace-footer .btn-secondary[data-label=Edit]").click(); cy.get('.sidebar-item-container[item-name="Duplicate Page"]') .find('[title="Unhide Workspace"]') @@ -237,7 +237,7 @@ context("Workspace 2.0", () => { }).as("page_deleted"); cy.get(".codex-editor__redactor .ce-block"); - cy.get(".standard-actions .btn-secondary[data-label=Edit]").click(); + cy.get(".workspace-footer .btn-secondary[data-label=Edit]").click(); cy.get('.sidebar-item-container[item-name="Duplicate Page"]') .find(".sidebar-item-control .setting-btn") diff --git a/cypress/integration/workspace_blocks.js b/cypress/integration/workspace_blocks.js index 8b93c4e50d..480d57eaf8 100644 --- a/cypress/integration/workspace_blocks.js +++ b/cypress/integration/workspace_blocks.js @@ -18,7 +18,7 @@ context("Workspace Blocks", () => { cy.visit("/app/website"); cy.get(".codex-editor__redactor .ce-block"); - cy.get('.custom-actions button[data-label="Create%20Workspace"]').click(); + cy.get('.workspace-footer button[data-label="New"]').click(); cy.fill_field("title", "Test Block Page", "Data"); cy.get_open_dialog().find(".modal-header").click(); cy.get_open_dialog().find(".btn-primary").click(); diff --git a/frappe/public/js/frappe/views/workspace/workspace.js b/frappe/public/js/frappe/views/workspace/workspace.js index 2cf812eae4..d5d95def6d 100644 --- a/frappe/public/js/frappe/views/workspace/workspace.js +++ b/frappe/public/js/frappe/views/workspace/workspace.js @@ -382,13 +382,19 @@ frappe.views.Workspace = class Workspace { this.$page = $(`
`).appendTo(this.body);