From fa4e826411cf3cae50b755199ac08bfdd4728975 Mon Sep 17 00:00:00 2001 From: sokumon Date: Sun, 9 Nov 2025 21:37:17 +0530 Subject: [PATCH] chore: rename app to desk in ui tests --- cypress/integration/awesome_bar.js | 12 +++--- cypress/integration/control_attach.js | 4 +- cypress/integration/control_autocomplete.js | 2 +- cypress/integration/control_barcode.js | 2 +- cypress/integration/control_color.js | 2 +- cypress/integration/control_currency.js | 2 +- cypress/integration/control_data.js | 11 ++++-- cypress/integration/control_date.js | 2 +- cypress/integration/control_date_range.js | 2 +- cypress/integration/control_duration.js | 2 +- cypress/integration/control_dynamic_link.js | 4 +- cypress/integration/control_float.js | 2 +- cypress/integration/control_icon.js | 2 +- cypress/integration/control_link.js | 4 +- .../integration/control_markdown_editor.js | 4 +- cypress/integration/control_phone.js | 6 +-- cypress/integration/control_rating.js | 2 +- cypress/integration/control_select.js | 2 +- cypress/integration/customize_form.js | 2 +- cypress/integration/dashboard.js | 2 +- cypress/integration/dashboard_chart.js | 2 +- cypress/integration/dashboard_links.js | 6 +-- .../integration/data_field_form_validation.js | 2 +- cypress/integration/datetime.js | 2 +- cypress/integration/depends_on.js | 2 +- cypress/integration/file_uploader.js | 2 +- cypress/integration/form.js | 14 +++---- cypress/integration/form_builder.js | 8 ++-- cypress/integration/form_tab_break.js | 2 +- cypress/integration/form_tour.js | 6 +-- cypress/integration/grid.js | 12 +++--- cypress/integration/grid_configuration.js | 2 +- cypress/integration/grid_pagination.js | 12 +++--- cypress/integration/grid_search.js | 2 +- cypress/integration/kanban.js | 8 ++-- cypress/integration/list_paging.js | 4 +- cypress/integration/list_view.js | 2 +- cypress/integration/list_view_settings.js | 6 +-- cypress/integration/login.js | 2 +- cypress/integration/multi_select_dialog.js | 2 +- cypress/integration/navigation.js | 8 ++-- cypress/integration/number_card.js | 2 +- cypress/integration/permissions.js | 6 +-- cypress/integration/query_report.js | 8 ++-- cypress/integration/report_view.js | 2 +- cypress/integration/rounding.js | 2 +- cypress/integration/routing.js | 2 +- cypress/integration/sidebar.js | 8 ++-- cypress/integration/socket_updates.js | 2 +- cypress/integration/url_data_field.js | 2 +- cypress/integration/utils.js | 2 +- cypress/integration/view_routing.js | 38 +++++++++---------- cypress/integration/web_form.js | 20 +++++----- cypress/integration/workspace.js | 12 +++--- cypress/integration/workspace_blocks.js | 8 ++-- .../client_script/ui_test_client_script.js | 8 ++-- 56 files changed, 151 insertions(+), 148 deletions(-) diff --git a/cypress/integration/awesome_bar.js b/cypress/integration/awesome_bar.js index 9b27516c2b..3139db8957 100644 --- a/cypress/integration/awesome_bar.js +++ b/cypress/integration/awesome_bar.js @@ -2,11 +2,11 @@ context("Awesome Bar", () => { before(() => { cy.visit("/login"); cy.login(); - cy.visit("/app/todo"); // Make sure ToDo filters are cleared. + cy.visit("/desk/todo"); // Make sure ToDo filters are cleared. cy.clear_filters(); - cy.visit("/app/web-page"); // Make sure Blog Post filters are cleared. + cy.visit("/desk/web-page"); // Make sure Blog Post filters are cleared. cy.clear_filters(); - cy.visit("/app/build"); // Go to some other page. + cy.visit("/desk/build"); // Go to some other page. }); beforeEach(() => { @@ -18,7 +18,7 @@ context("Awesome Bar", () => { }); after(() => { - cy.visit("/app/todo"); // Make sure we're not bleeding any filters to the next spec. + cy.visit("/desk/todo"); // Make sure we're not bleeding any filters to the next spec. cy.clear_filters(); }); @@ -28,7 +28,7 @@ context("Awesome Bar", () => { cy.get(".awesomplete").findByRole("listbox").should("be.visible"); cy.get("@awesome_bar").type("{enter}"); cy.get(".title-text").should("contain", "To Do"); - cy.location("pathname").should("eq", "/app/todo"); + cy.location("pathname").should("eq", "/desk/todo"); }); it("finds text in doctype list", () => { @@ -40,7 +40,7 @@ context("Awesome Bar", () => { cy.get('[data-original-title="ID"]:visible > input').should("have.value", "%test%"); // filter preserved, now finds something else - cy.visit("/app/todo"); + cy.visit("/desk/todo"); cy.get(".title-text").should("contain", "To Do"); cy.wait(200); // Wait a bit longer before checking the filter. cy.get('[data-original-title="ID"]:visible > input').as("filter"); diff --git a/cypress/integration/control_attach.js b/cypress/integration/control_attach.js index 70d79855a9..7a079edc6d 100644 --- a/cypress/integration/control_attach.js +++ b/cypress/integration/control_attach.js @@ -1,7 +1,7 @@ context("Attach Control", () => { before(() => { cy.login(); - cy.visit("/app/doctype"); + cy.visit("/desk/doctype"); return cy .window() .its("frappe") @@ -166,7 +166,7 @@ context("Attach Control", () => { context("Attach Control with Failed Document Save", () => { before(() => { cy.login(); - cy.visit("/app/doctype"); + cy.visit("/desk/doctype"); return cy .window() .its("frappe") diff --git a/cypress/integration/control_autocomplete.js b/cypress/integration/control_autocomplete.js index 4fc825f80d..d66e1a0a60 100644 --- a/cypress/integration/control_autocomplete.js +++ b/cypress/integration/control_autocomplete.js @@ -1,7 +1,7 @@ context("Control Autocomplete", () => { before(() => { cy.login(); - cy.visit("/app"); + cy.visit("/desk"); cy.wait(4000); }); diff --git a/cypress/integration/control_barcode.js b/cypress/integration/control_barcode.js index 96a1bb43d4..067e9b11fe 100644 --- a/cypress/integration/control_barcode.js +++ b/cypress/integration/control_barcode.js @@ -1,7 +1,7 @@ context("Control Barcode", () => { beforeEach(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); function get_dialog_with_barcode() { diff --git a/cypress/integration/control_color.js b/cypress/integration/control_color.js index aa3a45eed8..773d0faf47 100644 --- a/cypress/integration/control_color.js +++ b/cypress/integration/control_color.js @@ -1,7 +1,7 @@ context("Control Color", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); function get_dialog_with_color() { diff --git a/cypress/integration/control_currency.js b/cypress/integration/control_currency.js index 9db5dee2a3..5c07e0a380 100644 --- a/cypress/integration/control_currency.js +++ b/cypress/integration/control_currency.js @@ -3,7 +3,7 @@ context("Control Currency", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); function get_dialog_with_currency(df_options = {}) { diff --git a/cypress/integration/control_data.js b/cypress/integration/control_data.js index 019ce68214..b4f737a8c9 100644 --- a/cypress/integration/control_data.js +++ b/cypress/integration/control_data.js @@ -1,7 +1,7 @@ context("Data Control", () => { before(() => { cy.login(); - cy.visit("/app/doctype"); + cy.visit("/desk/doctype"); return cy .window() .its("frappe") @@ -39,7 +39,7 @@ context("Data Control", () => { }); it("check custom formatters", () => { - cy.visit(`/app/doctype/User`); + cy.visit(`/desk/doctype/User`); cy.get( '[data-fieldname="fields"] .grid-row[data-idx="3"] [data-fieldname="fieldtype"] .static-area' ).should("have.text", "Section Break"); @@ -49,7 +49,10 @@ context("Data Control", () => { cy.new_form("Test Data Control"); //Checking the URL for the new form of the doctype - cy.location("pathname").should("contains", "/app/test-data-control/new-test-data-control"); + cy.location("pathname").should( + "contains", + "/desk/test-data-control/new-test-data-control" + ); cy.get(".title-text").should("have.text", "New Test Data Control"); cy.get('.frappe-control[data-fieldname="name1"]') .find("label") @@ -130,7 +133,7 @@ context("Data Control", () => { //Checking if the fields contains the data which has been filled in cy.location("pathname").should( "not.contains", - "/app/test-data-control/new-test-data-control" + "/desk/test-data-control/new-test-data-control" ); cy.get_field("name1").should("have.value", "Komal"); cy.get_field("email").should("have.value", "komal@test.com"); diff --git a/cypress/integration/control_date.js b/cypress/integration/control_date.js index 0744961147..537aeea035 100644 --- a/cypress/integration/control_date.js +++ b/cypress/integration/control_date.js @@ -1,7 +1,7 @@ context("Date Control", () => { before(() => { cy.login(); - cy.visit("/app"); + cy.visit("/desk"); }); function get_dialog(date_field_options) { diff --git a/cypress/integration/control_date_range.js b/cypress/integration/control_date_range.js index f95a3825cc..608e7dc87a 100644 --- a/cypress/integration/control_date_range.js +++ b/cypress/integration/control_date_range.js @@ -1,7 +1,7 @@ context("Date Range Control", () => { before(() => { cy.login(); - cy.visit("/app"); + cy.visit("/desk"); }); function get_dialog() { diff --git a/cypress/integration/control_duration.js b/cypress/integration/control_duration.js index 889e68d12e..18597789ed 100644 --- a/cypress/integration/control_duration.js +++ b/cypress/integration/control_duration.js @@ -1,7 +1,7 @@ context("Control Duration", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); function get_dialog_with_duration(hide_days = 0, hide_seconds = 0) { diff --git a/cypress/integration/control_dynamic_link.js b/cypress/integration/control_dynamic_link.js index f98e23c57a..d3343a56a3 100644 --- a/cypress/integration/control_dynamic_link.js +++ b/cypress/integration/control_dynamic_link.js @@ -1,7 +1,7 @@ context("Dynamic Link", () => { before(() => { cy.login(); - cy.visit("/app/doctype"); + cy.visit("/desk/doctype"); return cy .window() .its("frappe") @@ -107,7 +107,7 @@ context("Dynamic Link", () => { }); it("Creating a dynamic link and verifying it", () => { - cy.visit("/app/test-dynamic-link"); + cy.visit("/desk/test-dynamic-link"); //Clicking on the Document ID field cy.get_field("doc_type").clear(); diff --git a/cypress/integration/control_float.js b/cypress/integration/control_float.js index 25936066cd..b5575edc7b 100644 --- a/cypress/integration/control_float.js +++ b/cypress/integration/control_float.js @@ -1,7 +1,7 @@ context("Control Float", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); function get_dialog_with_float() { diff --git a/cypress/integration/control_icon.js b/cypress/integration/control_icon.js index 406e9f1162..edb7c399f8 100644 --- a/cypress/integration/control_icon.js +++ b/cypress/integration/control_icon.js @@ -1,7 +1,7 @@ context("Control Icon", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); function get_dialog_with_icon() { diff --git a/cypress/integration/control_link.js b/cypress/integration/control_link.js index e263017bb3..0ad891772e 100644 --- a/cypress/integration/control_link.js +++ b/cypress/integration/control_link.js @@ -1,11 +1,11 @@ context("Control Link", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); beforeEach(() => { - cy.visit("/app/website"); + cy.visit("/desk/website"); cy.create_records({ doctype: "ToDo", description: "this is a test todo for link", diff --git a/cypress/integration/control_markdown_editor.js b/cypress/integration/control_markdown_editor.js index 24ab32f48a..520dd22024 100644 --- a/cypress/integration/control_markdown_editor.js +++ b/cypress/integration/control_markdown_editor.js @@ -1,11 +1,11 @@ context("Control Markdown Editor", () => { before(() => { cy.login(); - cy.visit("/app"); + cy.visit("/desk"); }); it("should allow inserting images by drag and drop", () => { - cy.visit("/app/web-page/new"); + cy.visit("/desk/web-page/new"); cy.fill_field("content_type", "Markdown", "Select"); cy.get_field("main_section_md", "Markdown Editor").selectFile( "cypress/fixtures/sample_image.jpg", diff --git a/cypress/integration/control_phone.js b/cypress/integration/control_phone.js index 103b813013..adfd82b0c8 100644 --- a/cypress/integration/control_phone.js +++ b/cypress/integration/control_phone.js @@ -3,7 +3,7 @@ import doctype_with_phone from "../fixtures/doctype_with_phone"; context("Control Phone", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); afterEach(() => { @@ -68,13 +68,13 @@ context("Control Phone", () => { }); it("existing document should render phone field with data", () => { - cy.visit("/app/doctype"); + cy.visit("/desk/doctype"); cy.insert_doc("DocType", doctype_with_phone, true); cy.clear_cache(); // Creating custom doctype cy.insert_doc("DocType", doctype_with_phone, true); - cy.visit("/app/doctype-with-phone"); + cy.visit("/desk/doctype-with-phone"); cy.click_listview_primary_button("Add Doctype With Phone"); // create a record diff --git a/cypress/integration/control_rating.js b/cypress/integration/control_rating.js index 613a6e9f92..1efee0857b 100644 --- a/cypress/integration/control_rating.js +++ b/cypress/integration/control_rating.js @@ -1,7 +1,7 @@ context("Control Rating", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); function get_dialog_with_rating() { diff --git a/cypress/integration/control_select.js b/cypress/integration/control_select.js index 5f7a07e0c4..8aec4121bf 100644 --- a/cypress/integration/control_select.js +++ b/cypress/integration/control_select.js @@ -1,7 +1,7 @@ context("Control Select", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); function get_dialog_with_select() { diff --git a/cypress/integration/customize_form.js b/cypress/integration/customize_form.js index bd8ca1d73b..a8cd4f767f 100644 --- a/cypress/integration/customize_form.js +++ b/cypress/integration/customize_form.js @@ -1,7 +1,7 @@ context("Customize Form", () => { before(() => { cy.login(); - cy.visit("/app/customize-form"); + cy.visit("/desk/customize-form"); }); it("Changing to naming rule should update autoname", () => { cy.fill_field("doc_type", "ToDo", "Link").blur(); diff --git a/cypress/integration/dashboard.js b/cypress/integration/dashboard.js index 6eb28567bc..21e3f3f789 100644 --- a/cypress/integration/dashboard.js +++ b/cypress/integration/dashboard.js @@ -1,7 +1,7 @@ describe("Dashboard view", { scrollBehavior: false }, () => { before(() => { cy.login(); - cy.visit("/app"); + cy.visit("/desk"); }); it("should load", () => { diff --git a/cypress/integration/dashboard_chart.js b/cypress/integration/dashboard_chart.js index f2a837e4b3..487a0ea42e 100644 --- a/cypress/integration/dashboard_chart.js +++ b/cypress/integration/dashboard_chart.js @@ -1,7 +1,7 @@ context("Dashboard Chart", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); it("Check filter populate for child table doctype", () => { diff --git a/cypress/integration/dashboard_links.js b/cypress/integration/dashboard_links.js index ebcdfa0048..627273ea35 100644 --- a/cypress/integration/dashboard_links.js +++ b/cypress/integration/dashboard_links.js @@ -24,7 +24,7 @@ context("Dashboard links", () => { }); it("Adding a new contact, checking for the counter on the dashboard and deleting the created contact", () => { - cy.visit("/app/contact"); + cy.visit("/desk/contact"); cy.clear_filters(); cy.visit(`/app/user/${cy.config("testUser")}`); @@ -48,7 +48,7 @@ context("Dashboard links", () => { cy.get('[data-doctype="Contact"]').contains("Contact").click(); //Deleting the newly created contact - cy.visit("/app/contact"); + cy.visit("/desk/contact"); cy.get(".list-subject > .select-like > .list-row-checkbox").eq(0).click({ force: true }); cy.findByRole("button", { name: "Actions" }).click(); cy.get('.actions-btn-group [data-label="Delete"]').click(); @@ -56,7 +56,7 @@ context("Dashboard links", () => { //To check if the counter from the "Contact" doc link is removed cy.wait(700); - cy.visit("/app/user"); + cy.visit("/desk/user"); cy.get(".list-row-col > .level-item > .ellipsis").eq(0).click({ force: true }); cy.get('[data-doctype="Contact"]').should("contain", "Contact"); }); diff --git a/cypress/integration/data_field_form_validation.js b/cypress/integration/data_field_form_validation.js index 49513e72fb..1bb839f573 100644 --- a/cypress/integration/data_field_form_validation.js +++ b/cypress/integration/data_field_form_validation.js @@ -4,7 +4,7 @@ const doctype_name = data_field_validation_doctype.name; context("Data Field Input Validation in New Form", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); return cy.insert_doc("DocType", data_field_validation_doctype, true); }); diff --git a/cypress/integration/datetime.js b/cypress/integration/datetime.js index 7a8a68c1d9..93ebfed969 100644 --- a/cypress/integration/datetime.js +++ b/cypress/integration/datetime.js @@ -4,7 +4,7 @@ const doctype_name = datetime_doctype.name; context("Control Date, Time and DateTime", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); return cy.insert_doc("DocType", datetime_doctype, true); }); diff --git a/cypress/integration/depends_on.js b/cypress/integration/depends_on.js index 6419809466..74be1fc493 100644 --- a/cypress/integration/depends_on.js +++ b/cypress/integration/depends_on.js @@ -1,7 +1,7 @@ context("Depends On", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); return cy .window() .its("frappe") diff --git a/cypress/integration/file_uploader.js b/cypress/integration/file_uploader.js index 9905bc7461..5e56d0e596 100644 --- a/cypress/integration/file_uploader.js +++ b/cypress/integration/file_uploader.js @@ -4,7 +4,7 @@ context("FileUploader", () => { }); beforeEach(() => { - cy.visit("/app"); + cy.visit("/desk"); cy.wait(2000); // workspace can load async and clear active dialog }); diff --git a/cypress/integration/form.js b/cypress/integration/form.js index d40b0d5c89..c533d14f03 100644 --- a/cypress/integration/form.js +++ b/cypress/integration/form.js @@ -17,7 +17,7 @@ const type_value = (value) => { context("Form", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); return cy .window() .its("frappe") @@ -28,11 +28,11 @@ context("Form", () => { beforeEach(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); it("create a new form", () => { - cy.visit("/app/todo/new"); + cy.visit("/desk/todo/new"); cy.get_field("description", "Text Editor") .type("this is a test todo", { force: true }) .wait(1000); @@ -51,7 +51,7 @@ context("Form", () => { }); it("navigates between documents with child table list filters applied", () => { - cy.visit("/app/contact"); + cy.visit("/desk/contact"); cy.clear_filters(); cy.get('.standard-filter-section [data-fieldname="name"] input') @@ -60,7 +60,7 @@ context("Form", () => { cy.click_listview_row_item_with_text("Test Form Contact 3"); // clear filters - cy.visit("/app/contact"); + cy.visit("/desk/contact"); cy.clear_filters(); }); @@ -70,7 +70,7 @@ context("Form", () => { let valid_email = "user@email.com"; let expectBackgroundColor = "rgb(255, 245, 245)"; - cy.visit("/app/contact/new"); + cy.visit("/desk/contact/new"); cy.fill_field("company_name", "Test Company"); cy.get('.frappe-control[data-fieldname="email_ids"]').as("table"); @@ -105,7 +105,7 @@ context("Form", () => { }); it("update docfield property using set_df_property in child table", () => { - cy.visit("/app/contact/Test Form Contact 1"); + cy.visit("/desk/contact/Test Form Contact 1"); cy.window() .its("cur_frm") .then((frm) => { diff --git a/cypress/integration/form_builder.js b/cypress/integration/form_builder.js index 04f698a46a..da4b9e75fb 100644 --- a/cypress/integration/form_builder.js +++ b/cypress/integration/form_builder.js @@ -3,18 +3,18 @@ const doctype_name = form_builder_doctype.name; context("Form Builder", () => { before(() => { cy.login(); - cy.visit("/app"); + cy.visit("/desk"); return cy.insert_doc("DocType", form_builder_doctype, true); }); it("Open Form Builder for Web Form Doctype/Customize Form", () => { // doctype - cy.visit("/app/doctype/Web Form"); + cy.visit("/desk/doctype/Web Form"); cy.findByRole("tab", { name: "Form" }).click(); cy.get(".form-builder-container").should("exist"); // customize form - cy.visit("/app/customize-form?doc_type=Web%20Form"); + cy.visit("/desk/customize-form?doc_type=Web%20Form"); cy.findByRole("tab", { name: "Form" }).click(); cy.get(".form-builder-container").should("exist"); }); @@ -264,7 +264,7 @@ context("Form Builder", () => { cy.findByRole("button", { name: "Save" }).click({ force: true }); - cy.visit("/app/form-builder-doctype/new"); + cy.visit("/desk/form-builder-doctype/new"); cy.get("[data-fieldname='data3'] .clearfix label").should("have.text", "New Title"); }); diff --git a/cypress/integration/form_tab_break.js b/cypress/integration/form_tab_break.js index c4f7626e3d..feb3ffd208 100644 --- a/cypress/integration/form_tab_break.js +++ b/cypress/integration/form_tab_break.js @@ -3,7 +3,7 @@ const doctype_name = doctype_with_tab_break.name; context("Form Tab Break", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); return cy.insert_doc("DocType", doctype_with_tab_break, true); }); it("Should switch tab and open correct tabs on validation error", () => { diff --git a/cypress/integration/form_tour.js b/cypress/integration/form_tour.js index f4ae0dbb6d..4a43626c55 100644 --- a/cypress/integration/form_tour.js +++ b/cypress/integration/form_tour.js @@ -1,7 +1,7 @@ context.skip("Form Tour", () => { before(() => { cy.login(); - cy.visit("/app"); + cy.visit("/desk"); return cy .window() .its("frappe") @@ -11,11 +11,11 @@ context.skip("Form Tour", () => { }); const open_test_form_tour = () => { - cy.visit("/app/form-tour/Test Form Tour"); + cy.visit("/desk/form-tour/Test Form Tour"); cy.findByRole("button", { name: "Show Tour" }).should("be.visible").as("show_tour"); cy.get("@show_tour").click(); cy.wait(500); - cy.url().should("include", "/app/contact"); + cy.url().should("include", "/desk/contact"); }; it("jump to a form tour", open_test_form_tour); diff --git a/cypress/integration/grid.js b/cypress/integration/grid.js index ae9b59f868..607db6746e 100644 --- a/cypress/integration/grid.js +++ b/cypress/integration/grid.js @@ -1,11 +1,11 @@ context("Grid", () => { beforeEach(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); return cy .window() .its("frappe") @@ -16,7 +16,7 @@ context("Grid", () => { }); }); it("update docfield property using update_docfield_property", () => { - cy.visit("/app/contact/Test Contact"); + cy.visit("/desk/contact/Test Contact"); cy.window() .its("cur_frm") .then((frm) => { @@ -40,7 +40,7 @@ context("Grid", () => { }); }); it("update docfield property using toggle_display", () => { - cy.visit("/app/contact/Test Contact"); + cy.visit("/desk/contact/Test Contact"); cy.window() .its("cur_frm") .then((frm) => { @@ -64,7 +64,7 @@ context("Grid", () => { }); }); it("update docfield property using toggle_enable", () => { - cy.visit("/app/contact/Test Contact"); + cy.visit("/desk/contact/Test Contact"); cy.window() .its("cur_frm") .then((frm) => { @@ -88,7 +88,7 @@ context("Grid", () => { }); }); it("update docfield property using toggle_reqd", () => { - cy.visit("/app/contact/Test Contact"); + cy.visit("/desk/contact/Test Contact"); cy.window() .its("cur_frm") .then((frm) => { diff --git a/cypress/integration/grid_configuration.js b/cypress/integration/grid_configuration.js index a367414489..f8fdd89b6c 100644 --- a/cypress/integration/grid_configuration.js +++ b/cypress/integration/grid_configuration.js @@ -1,7 +1,7 @@ context("Grid Configuration", () => { beforeEach(() => { cy.login(); - cy.visit("/app/website-settings"); + cy.visit("/desk/website-settings"); }); it("Set user wise grid settings", () => { cy.findByRole("tab", { name: "Navbar" }).click(); diff --git a/cypress/integration/grid_pagination.js b/cypress/integration/grid_pagination.js index 097f2a5cdc..6a6a3d2d2b 100644 --- a/cypress/integration/grid_pagination.js +++ b/cypress/integration/grid_pagination.js @@ -1,11 +1,11 @@ context("Grid Pagination", () => { beforeEach(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); return cy .window() .its("frappe") @@ -16,14 +16,14 @@ context("Grid Pagination", () => { }); }); it("creates pages for child table", () => { - cy.visit("/app/contact/Test Contact"); + cy.visit("/desk/contact/Test Contact"); cy.get('.frappe-control[data-fieldname="phone_nos"]').as("table"); cy.get("@table").find(".current-page-number").should("have.value", "1"); cy.get("@table").find(".total-page-number").should("contain", "20"); cy.get("@table").find(".grid-body .grid-row").should("have.length", 50); }); it("goes to the next and previous page", () => { - cy.visit("/app/contact/Test Contact"); + cy.visit("/desk/contact/Test Contact"); cy.get('.frappe-control[data-fieldname="phone_nos"]').as("table"); cy.get("@table").find(".next-page").click(); cy.get("@table").find(".current-page-number").should("have.value", "2"); @@ -36,7 +36,7 @@ context("Grid Pagination", () => { cy.get("@table").find(".grid-body .grid-row").first().should("have.attr", "data-idx", "1"); }); it("adds and deletes rows and changes page", () => { - cy.visit("/app/contact/Test Contact"); + cy.visit("/desk/contact/Test Contact"); cy.get('.frappe-control[data-fieldname="phone_nos"]').as("table"); cy.get("@table").findByRole("button", { name: "Add Row" }).click(); cy.get("@table").find(".grid-body .row-index").should("contain", 1001); @@ -49,7 +49,7 @@ context("Grid Pagination", () => { cy.get("@table").find(".total-page-number").should("contain", "20"); }); it("go to specific page, use up and down arrow, type characters, 0 page and more than existing page", () => { - cy.visit("/app/contact/Test Contact"); + cy.visit("/desk/contact/Test Contact"); cy.get('.frappe-control[data-fieldname="phone_nos"]').as("table"); cy.get("@table").find(".current-page-number").focus().clear().type("17").blur(); cy.get("@table").find(".grid-body .row-index").should("contain", 801); diff --git a/cypress/integration/grid_search.js b/cypress/integration/grid_search.js index 3d43412313..d8d39d616f 100644 --- a/cypress/integration/grid_search.js +++ b/cypress/integration/grid_search.js @@ -7,7 +7,7 @@ context("Grid Search", () => { before(() => { cy.visit("/login"); cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); cy.insert_doc("DocType", child_table_doctype, true); cy.insert_doc("DocType", child_table_doctype_1, true); cy.insert_doc("DocType", doctype_with_child_table, true); diff --git a/cypress/integration/kanban.js b/cypress/integration/kanban.js index c529b4e4ff..f4834450e2 100644 --- a/cypress/integration/kanban.js +++ b/cypress/integration/kanban.js @@ -1,11 +1,11 @@ context("Kanban Board", () => { before(() => { cy.login("frappe@example.com"); - cy.visit("/app"); + cy.visit("/desk"); }); it("Create ToDo Kanban", () => { - cy.visit("/app/todo"); + cy.visit("/desk/todo"); cy.get(".page-actions .custom-btn-group button").click(); cy.get(".page-actions .custom-btn-group ul.dropdown-menu li").contains("Kanban").click(); @@ -33,7 +33,7 @@ context("Kanban Board", () => { }); it("Add and Remove fields", () => { - cy.visit("/app/todo/view/kanban/ToDo Kanban"); + cy.visit("/desk/todo/view/kanban/ToDo Kanban"); cy.intercept( "POST", @@ -110,7 +110,7 @@ context("Kanban Board", () => { cy.switch_to_user(not_system_manager); - cy.visit("/app/todo/view/kanban/Admin Kanban"); + cy.visit("/desk/todo/view/kanban/Admin Kanban"); // Menu button should be hidden (dropdown for 'Save Filters' and 'Delete Kanban Board') cy.get(".no-list-sidebar .menu-btn-group .btn-default[data-original-title='Menu']").should( diff --git a/cypress/integration/list_paging.js b/cypress/integration/list_paging.js index 2ce347828a..21d39081d1 100644 --- a/cypress/integration/list_paging.js +++ b/cypress/integration/list_paging.js @@ -1,7 +1,7 @@ context("List Paging", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); return cy .window() .its("frappe") @@ -11,7 +11,7 @@ context("List Paging", () => { }); it("test load more with count selection buttons", () => { - cy.visit("/app/todo/view/report"); + cy.visit("/desk/todo/view/report"); cy.clear_filters(); cy.get(".list-paging-area .list-count").should("contain.text", "20 of"); diff --git a/cypress/integration/list_view.js b/cypress/integration/list_view.js index 397c91215b..b88ea04f47 100644 --- a/cypress/integration/list_view.js +++ b/cypress/integration/list_view.js @@ -1,7 +1,7 @@ context("List View", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); return cy .window() .its("frappe") diff --git a/cypress/integration/list_view_settings.js b/cypress/integration/list_view_settings.js index 027dfaa768..57c7f3023d 100644 --- a/cypress/integration/list_view_settings.js +++ b/cypress/integration/list_view_settings.js @@ -1,17 +1,17 @@ context("List View Settings", () => { beforeEach(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); it("Default settings", () => { - cy.visit("/app/List/DocType/List"); + cy.visit("/desk/List/DocType/List"); cy.clear_filters(); cy.get(".list-count").should("contain", "20 of"); cy.get(".list-stats").should("contain", "Tags"); }); it("disable count and sidebar stats then verify", () => { cy.wait(300); - cy.visit("/app/List/DocType/List"); + cy.visit("/desk/List/DocType/List"); cy.clear_filters(); cy.wait(300); cy.get(".list-count").should("contain", "20 of"); diff --git a/cypress/integration/login.js b/cypress/integration/login.js index 7eb62fefa5..aec28ac06a 100644 --- a/cypress/integration/login.js +++ b/cypress/integration/login.js @@ -36,7 +36,7 @@ context("Login", () => { cy.get("#login_password").type(Cypress.env("adminPassword")); cy.findByRole("button", { name: "Login" }).click(); - cy.location("pathname").should("match", /^\/app/); + cy.location("pathname").should("match", /^\/desk/); cy.window().its("frappe.session.user").should("eq", "Administrator"); }); diff --git a/cypress/integration/multi_select_dialog.js b/cypress/integration/multi_select_dialog.js index abf6604bec..463f39bdb4 100644 --- a/cypress/integration/multi_select_dialog.js +++ b/cypress/integration/multi_select_dialog.js @@ -1,7 +1,7 @@ context("MultiSelectDialog", () => { before(() => { cy.login(); - cy.visit("/app"); + cy.visit("/desk"); const contact_template = { doctype: "Contact", first_name: "Test", diff --git a/cypress/integration/navigation.js b/cypress/integration/navigation.js index a5e579d12a..5194498985 100644 --- a/cypress/integration/navigation.js +++ b/cypress/integration/navigation.js @@ -2,7 +2,7 @@ context("Navigation", () => { before(() => { cy.visit("/login"); cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); it("Navigate to route with hash in document name", () => { cy.insert_doc( @@ -15,14 +15,14 @@ context("Navigation", () => { }, true ); - cy.visit(`/app/client-script/${encodeURIComponent("ABC#123")}`); + cy.visit(`/desk/client-script/${encodeURIComponent("ABC#123")}`); cy.title().should("eq", "ABC#123"); cy.go("back"); cy.title().should("eq", "Website"); }); it("Navigate to previous page after login", () => { - cy.visit("/app/todo"); + cy.visit("/desk/todo"); cy.get(".page-head").findByTitle("To Do").should("be.visible"); cy.clear_filters(); cy.call("logout"); @@ -31,6 +31,6 @@ context("Navigation", () => { cy.location("pathname").should("eq", "/login"); cy.login(); cy.reload().as("reload"); - cy.location("pathname").should("eq", "/app/todo"); + cy.location("pathname").should("eq", "/desk/todo"); }); }); diff --git a/cypress/integration/number_card.js b/cypress/integration/number_card.js index 24227fe27b..c3e3edcf5e 100644 --- a/cypress/integration/number_card.js +++ b/cypress/integration/number_card.js @@ -1,7 +1,7 @@ context("Number Card", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); it("Check filter populate for child table doctype", () => { diff --git a/cypress/integration/permissions.js b/cypress/integration/permissions.js index 9c21a7914d..8702302264 100644 --- a/cypress/integration/permissions.js +++ b/cypress/integration/permissions.js @@ -2,11 +2,11 @@ context.skip("Permissions API", () => { before(() => { cy.visit("/login"); cy.remove_role("frappe@example.com", "System Manager"); - cy.visit("/app"); + cy.visit("/desk"); }); it("Checks permissions via `has_perm` for Kanban Board DocType", () => { - cy.visit("/app/kanban-board/view/list"); + cy.visit("/desk/kanban-board/view/list"); cy.window() .its("frappe") .then((frappe) => { @@ -20,7 +20,7 @@ context.skip("Permissions API", () => { }); it("Checks permissions via `get_perm` for Kanban Board DocType", () => { - cy.visit("/app/kanban-board/view/list"); + cy.visit("/desk/kanban-board/view/list"); cy.window() .its("frappe") .then((frappe) => { diff --git a/cypress/integration/query_report.js b/cypress/integration/query_report.js index 4a2d753ff0..8df908683c 100644 --- a/cypress/integration/query_report.js +++ b/cypress/integration/query_report.js @@ -1,7 +1,7 @@ context("Query Report", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); cy.insert_doc( "Report", { @@ -19,7 +19,7 @@ context("Query Report", () => { }); it("add custom column in report", () => { - cy.visit("/app/query-report/Permitted Documents For User"); + cy.visit("/desk/query-report/Permitted Documents For User"); cy.get(".page-form.flex", { timeout: 60000 }) .should("have.length", 1) @@ -77,12 +77,12 @@ context("Query Report", () => { .findByRole("button", { name: "Submit" }) .click({ timeout: 1000, force: true }); - cy.visit("/app/query-report/" + report); + cy.visit("/desk/query-report/" + report); cy.get(".datatable").should("exist"); }; it("test multi level query report", () => { - cy.visit("/app/query-report/Test ToDo Report"); + cy.visit("/desk/query-report/Test ToDo Report"); cy.get(".datatable").should("exist"); save_report_and_open("Test ToDo Report 1", " 1"); diff --git a/cypress/integration/report_view.js b/cypress/integration/report_view.js index 27fe840450..8311511e87 100644 --- a/cypress/integration/report_view.js +++ b/cypress/integration/report_view.js @@ -4,7 +4,7 @@ const doctype_name = custom_submittable_doctype.name; context("Report View", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); cy.insert_doc("DocType", custom_submittable_doctype, true); cy.clear_cache(); cy.insert_doc( diff --git a/cypress/integration/rounding.js b/cypress/integration/rounding.js index f778e009bb..89e305b1f6 100644 --- a/cypress/integration/rounding.js +++ b/cypress/integration/rounding.js @@ -1,7 +1,7 @@ context("Rounding behaviour", () => { before(() => { cy.login(); - cy.visit("/app/"); + cy.visit("/desk/"); }); it("Commercial Rounding", () => { diff --git a/cypress/integration/routing.js b/cypress/integration/routing.js index 79c0cea9dc..8b5c3a8880 100644 --- a/cypress/integration/routing.js +++ b/cypress/integration/routing.js @@ -1,4 +1,4 @@ -const list_view = "/app/todo"; +const list_view = "/desk/todo"; // test round trip with filter types diff --git a/cypress/integration/sidebar.js b/cypress/integration/sidebar.js index 5d170ca9ca..fc12929ba7 100644 --- a/cypress/integration/sidebar.js +++ b/cypress/integration/sidebar.js @@ -38,7 +38,7 @@ context("Sidebar", () => { before(() => { cy.visit("/"); cy.login(); - cy.visit("/app"); + cy.visit("/desk"); return cy .window() .its("frappe") @@ -87,7 +87,7 @@ context("Sidebar", () => { description: "Sidebar Attachment ToDo", }).then((todo) => { let todo_name = todo.message.name; - cy.visit("/app/todo"); + cy.visit("/desk/todo"); cy.click_sidebar_button("Assigned To"); //To check if no filter is available in "Assigned To" dropdown @@ -99,7 +99,7 @@ context("Sidebar", () => { cy.get_field("assign_to_me", "Check").click(); cy.wait(1000); cy.get(".modal-footer > .standard-actions > .btn-primary").click(); - cy.visit("/app/todo"); + cy.visit("/desk/todo"); cy.click_sidebar_button("Assigned To"); //To check if filter is added in "Assigned To" dropdown after assignment @@ -136,7 +136,7 @@ context("Sidebar", () => { cy.get(".assignments > .avatar-group > .avatar > .avatar-frame").click(); cy.get(".remove-btn").click({ force: true }); cy.hide_dialog(); - cy.visit("/app/todo"); + cy.visit("/desk/todo"); cy.click_sidebar_button("Assigned To"); cy.get(".empty-state").should("contain", "No filters found"); }); diff --git a/cypress/integration/socket_updates.js b/cypress/integration/socket_updates.js index 4253618e18..4b892d95c7 100644 --- a/cypress/integration/socket_updates.js +++ b/cypress/integration/socket_updates.js @@ -4,7 +4,7 @@ context("Realtime updates", () => { }); beforeEach(() => { - cy.visit("/app/todo"); + cy.visit("/desk/todo"); // required because immediately after load socket is still connecting. // Not a huge deal breaker in prod. cy.wait(500); diff --git a/cypress/integration/url_data_field.js b/cypress/integration/url_data_field.js index c74bc8b1a2..c6f45b5488 100644 --- a/cypress/integration/url_data_field.js +++ b/cypress/integration/url_data_field.js @@ -5,7 +5,7 @@ const doctype_name = data_field_validation_doctype.name; context("URL Data Field Input", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); return cy.insert_doc("DocType", data_field_validation_doctype, true); }); diff --git a/cypress/integration/utils.js b/cypress/integration/utils.js index 083a03294a..d3fd3d4016 100644 --- a/cypress/integration/utils.js +++ b/cypress/integration/utils.js @@ -1,7 +1,7 @@ context("Utils", () => { before(() => { cy.login(); - cy.visit("/app"); + cy.visit("/desk"); }); function run_util(name, ...args) { diff --git a/cypress/integration/view_routing.js b/cypress/integration/view_routing.js index 5942d4f005..5bb3c2d8db 100644 --- a/cypress/integration/view_routing.js +++ b/cypress/integration/view_routing.js @@ -1,11 +1,11 @@ context("View", () => { before(() => { cy.login(); - cy.visit("/app/website"); + cy.visit("/desk/website"); }); it("Route to ToDo List View", () => { - cy.visit("/app/todo/view/list"); + cy.visit("/desk/todo/view/list"); cy.wait(500); cy.window() .its("cur_list") @@ -15,7 +15,7 @@ context("View", () => { }); it("Route to ToDo Report View", () => { - cy.visit("/app/todo/view/report"); + cy.visit("/desk/todo/view/report"); cy.wait(500); cy.window() .its("cur_list") @@ -25,7 +25,7 @@ context("View", () => { }); it("Route to ToDo Dashboard View", () => { - cy.visit("/app/todo/view/dashboard"); + cy.visit("/desk/todo/view/dashboard"); cy.wait(500); cy.window() .its("cur_list") @@ -35,7 +35,7 @@ context("View", () => { }); it("Route to ToDo Gantt View", () => { - cy.visit("/app/todo/view/gantt"); + cy.visit("/desk/todo/view/gantt"); cy.wait(500); cy.window() .its("cur_list") @@ -46,7 +46,7 @@ context("View", () => { it("Route to ToDo Kanban View", () => { cy.call("frappe.tests.ui_test_helpers.create_kanban").then(() => { - cy.visit("/app/note/view/kanban/_Note _Kanban"); + cy.visit("/desk/note/view/kanban/_Note _Kanban"); cy.wait(500); cy.window() .its("cur_list") @@ -57,7 +57,7 @@ context("View", () => { }); it("Route to ToDo Calendar View", () => { - cy.visit("/app/todo/view/calendar"); + cy.visit("/desk/todo/view/calendar"); cy.wait(500); cy.window() .its("cur_list") @@ -68,7 +68,7 @@ context("View", () => { it("Route to Custom Tree View", () => { cy.call("frappe.tests.ui_test_helpers.setup_tree_doctype").then(() => { - cy.visit("/app/custom-tree/view/tree"); + cy.visit("/desk/custom-tree/view/tree"); cy.wait(500); cy.window() .its("cur_tree") @@ -137,7 +137,7 @@ context("View", () => { it("Route to default view from app/{doctype}", () => { cy.call("frappe.tests.ui_test_helpers.setup_default_view", { view: "Report" }).then(() => { - cy.visit("/app/event"); + cy.visit("/desk/event"); cy.wait(500); cy.window() .its("cur_list") @@ -149,7 +149,7 @@ context("View", () => { it("Route to default view from app/{doctype}/view", () => { cy.call("frappe.tests.ui_test_helpers.setup_default_view", { view: "Report" }).then(() => { - cy.visit("/app/event/view"); + cy.visit("/desk/event/view"); cy.wait(500); cy.window() .its("cur_list") @@ -164,7 +164,7 @@ context("View", () => { view: "Report", force_reroute: true, }).then(() => { - cy.visit("/app/event"); + cy.visit("/desk/event"); cy.wait(500); cy.window() .its("cur_list") @@ -179,7 +179,7 @@ context("View", () => { view: "Report", force_reroute: true, }).then(() => { - cy.visit("/app/event/view"); + cy.visit("/desk/event/view"); cy.wait(500); cy.window() .its("cur_list") @@ -194,7 +194,7 @@ context("View", () => { view: "Report", force_reroute: true, }).then(() => { - cy.visit("/app/event/view/list"); + cy.visit("/desk/event/view/list"); cy.wait(500); cy.window() .its("cur_list") @@ -206,17 +206,17 @@ context("View", () => { it("Validate Route History for Default View", () => { cy.call("frappe.tests.ui_test_helpers.setup_default_view", { view: "Report" }).then(() => { - cy.visit("/app/event"); - cy.visit("/app/event/view/list"); - cy.location("pathname").should("eq", "/app/event/view/list"); + cy.visit("/desk/event"); + cy.visit("/desk/event/view/list"); + cy.location("pathname").should("eq", "/desk/event/view/list"); cy.go("back"); - cy.location("pathname").should("eq", "/app/event"); + cy.location("pathname").should("eq", "/desk/event"); }); }); it("Route to Form", () => { const test_user = cy.config("testUser"); - cy.visit(`/app/user/${test_user}`); + cy.visit(`/desk/user/${test_user}`); cy.window() .its("cur_frm") .then((frm) => { @@ -225,7 +225,7 @@ context("View", () => { }); it("Route to Website Workspace", () => { - cy.visit("/app/website"); + cy.visit("/desk/website"); cy.get(".title-text").should("contain", "Website"); }); }); diff --git a/cypress/integration/web_form.js b/cypress/integration/web_form.js index c93593908d..b7ebc42e3f 100644 --- a/cypress/integration/web_form.js +++ b/cypress/integration/web_form.js @@ -1,7 +1,7 @@ context("Web Form", () => { before(() => { cy.login("Administrator"); - cy.visit("/app/"); + cy.visit("/desk/"); return cy .window() .its("frappe") @@ -11,7 +11,7 @@ context("Web Form", () => { }); it("Create Web Form", () => { - cy.visit("/app/web-form/new"); + cy.visit("/desk/web-form/new"); cy.intercept("POST", "/api/method/frappe.desk.form.save.savedocs").as("save_form"); @@ -51,7 +51,7 @@ context("Web Form", () => { it("Login Required", () => { cy.call("logout"); cy.login("Administrator"); - cy.visit("/app/web-form/note"); + cy.visit("/desk/web-form/note"); cy.findByRole("tab", { name: "Settings" }).click(); cy.get('input[data-fieldname="login_required"]').check({ force: true }); @@ -70,7 +70,7 @@ context("Web Form", () => { it("Show List", () => { cy.login("Administrator"); - cy.visit("/app/web-form/note"); + cy.visit("/desk/web-form/note"); cy.findByRole("tab", { name: "Settings" }).click(); cy.get(".section-head").contains("List Settings").click(); @@ -84,7 +84,7 @@ context("Web Form", () => { }); it("Show Custom List Title", () => { - cy.visit("/app/web-form/note"); + cy.visit("/desk/web-form/note"); cy.findByRole("tab", { name: "Settings" }).click(); @@ -107,7 +107,7 @@ context("Web Form", () => { cy.get(".web-list-table thead th").contains("Sr."); cy.get(".web-list-table thead th").contains("Title"); - cy.visit("/app/web-form/note"); + cy.visit("/desk/web-form/note"); cy.findByRole("tab", { name: "Settings" }).click(); @@ -156,7 +156,7 @@ context("Web Form", () => { }); it("Custom Breadcrumbs", () => { - cy.visit("/app/web-form/note"); + cy.visit("/desk/web-form/note"); cy.findByRole("tab", { name: "Customization" }).click(); cy.fill_field("breadcrumbs", '[{"label": _("Notes"), "route":"note"}]', "Code"); @@ -188,7 +188,7 @@ context("Web Form", () => { }); it("Edit Mode", () => { - cy.visit("/app/web-form/note"); + cy.visit("/desk/web-form/note"); cy.findByRole("tab", { name: "Settings" }).click(); cy.get('input[data-fieldname="allow_edit"]').check(); @@ -212,7 +212,7 @@ context("Web Form", () => { }); it("Allow Multiple Response", () => { - cy.visit("/app/web-form/note"); + cy.visit("/desk/web-form/note"); cy.findByRole("tab", { name: "Settings" }).click(); cy.get('input[data-fieldname="allow_multiple"]').check(); @@ -230,7 +230,7 @@ context("Web Form", () => { }); it("Allow Delete", () => { - cy.visit("/app/web-form/note"); + cy.visit("/desk/web-form/note"); cy.findByRole("tab", { name: "Settings" }).click(); cy.get('input[data-fieldname="allow_delete"]').check(); diff --git a/cypress/integration/workspace.js b/cypress/integration/workspace.js index f794df4ed7..447c1d678d 100644 --- a/cypress/integration/workspace.js +++ b/cypress/integration/workspace.js @@ -5,14 +5,14 @@ context("Workspace 2.0", () => { }); it("Navigate to page from sidebar", () => { - cy.visit("/app/build"); + cy.visit("/desk/build"); cy.get(".codex-editor__redactor .ce-block"); - cy.get('.sidebar-item-container[item-title="Page"]').first().click(); - cy.location("pathname").should("eq", "/app/page"); + cy.get('.sidebar-item-container[item-name="Page"]').first().click(); + cy.location("pathname").should("eq", "/desk/page"); }); it("Create Private Page", () => { - cy.visit("/app/build"); + cy.visit("/desk/build"); cy.intercept({ method: "POST", url: "api/method/frappe.desk.doctype.workspace.workspace.new_page", @@ -28,11 +28,11 @@ context("Workspace 2.0", () => { cy.get_open_dialog().find(".btn-primary").click(); // check if sidebar item is added in pubic section - cy.get('.sidebar-item-container[item-title="Test Private Page"]'); + cy.get('.sidebar-item-container[item-name="Test Private Page"]'); cy.wait(300); cy.get('.standard-actions .btn-primary[data-label="Save"]').click(); cy.wait(300); - cy.get('.sidebar-item-container[item-title="Test Private Page"]'); + cy.get('.sidebar-item-container[item-name="Test Private Page"]'); cy.wait("@new_page"); }); diff --git a/cypress/integration/workspace_blocks.js b/cypress/integration/workspace_blocks.js index 03fbf06db6..581c82956f 100644 --- a/cypress/integration/workspace_blocks.js +++ b/cypress/integration/workspace_blocks.js @@ -1,7 +1,7 @@ context("Workspace Blocks", () => { before(() => { cy.login(); - cy.visit("/app"); + cy.visit("/desk"); return cy .window() .its("frappe") @@ -16,7 +16,7 @@ context("Workspace Blocks", () => { url: "api/method/frappe.desk.doctype.workspace.workspace.new_page", }).as("new_page"); - cy.visit("/app/website"); + cy.visit("/desk/website"); cy.get(".codex-editor__redactor .ce-block"); cy.get(".btn-new-workspace").click(); cy.fill_field("title", "Test Block Page", "Data"); @@ -25,11 +25,11 @@ context("Workspace Blocks", () => { cy.get_open_dialog().find(".btn-primary").click(); // check if sidebar item is added in private section - cy.get('.sidebar-item-container[item-title="Test Block Page"]'); + cy.get('.sidebar-item-container[item-name="Test Block Page"]'); cy.wait(300); cy.get('.standard-actions .btn-primary[data-label="Save"]').click(); cy.wait(300); - cy.get('.sidebar-item-container[item-title="Test Block Page"]'); + cy.get('.sidebar-item-container[item-name="Test Block Page"]'); cy.wait("@new_page"); }); diff --git a/frappe/custom/doctype/client_script/ui_test_client_script.js b/frappe/custom/doctype/client_script/ui_test_client_script.js index 39f73d8487..f3ac811810 100644 --- a/frappe/custom/doctype/client_script/ui_test_client_script.js +++ b/frappe/custom/doctype/client_script/ui_test_client_script.js @@ -16,7 +16,7 @@ context("Client Script", () => { }, true ); - cy.visit("/app/todo/new", { + cy.visit("/desk/todo/new", { onBeforeLoad(win) { cy.spy(win.console, "log").as("consoleLog"); }, @@ -36,7 +36,7 @@ context("Client Script", () => { }, true ); - cy.visit("/app/todo", { + cy.visit("/desk/todo", { onBeforeLoad(win) { cy.spy(win.console, "log").as("consoleLog"); }, @@ -56,7 +56,7 @@ context("Client Script", () => { }, true ); - cy.visit("/app/todo", { + cy.visit("/desk/todo", { onBeforeLoad(win) { cy.spy(win.console, "log").as("consoleLog"); }, @@ -87,7 +87,7 @@ context("Client Script", () => { }, true ); - cy.visit("/app/todo/new", { + cy.visit("/desk/todo/new", { onBeforeLoad(win) { cy.spy(win.console, "log").as("consoleLog"); },