chore: rename app to desk in ui tests
This commit is contained in:
parent
4ef5e2a4f8
commit
fa4e826411
56 changed files with 151 additions and 148 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("Control Autocomplete", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app");
|
||||
cy.visit("/desk");
|
||||
cy.wait(4000);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("Control Barcode", () => {
|
||||
beforeEach(() => {
|
||||
cy.login();
|
||||
cy.visit("/app/website");
|
||||
cy.visit("/desk/website");
|
||||
});
|
||||
|
||||
function get_dialog_with_barcode() {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("Control Color", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app/website");
|
||||
cy.visit("/desk/website");
|
||||
});
|
||||
|
||||
function get_dialog_with_color() {
|
||||
|
|
|
|||
|
|
@ -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 = {}) {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("Date Control", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app");
|
||||
cy.visit("/desk");
|
||||
});
|
||||
|
||||
function get_dialog(date_field_options) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("Date Range Control", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app");
|
||||
cy.visit("/desk");
|
||||
});
|
||||
|
||||
function get_dialog() {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("Control Float", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app/website");
|
||||
cy.visit("/desk/website");
|
||||
});
|
||||
|
||||
function get_dialog_with_float() {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("Control Icon", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app/website");
|
||||
cy.visit("/desk/website");
|
||||
});
|
||||
|
||||
function get_dialog_with_icon() {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("Control Rating", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app/website");
|
||||
cy.visit("/desk/website");
|
||||
});
|
||||
|
||||
function get_dialog_with_rating() {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("Control Select", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app/website");
|
||||
cy.visit("/desk/website");
|
||||
});
|
||||
|
||||
function get_dialog_with_select() {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
describe("Dashboard view", { scrollBehavior: false }, () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app");
|
||||
cy.visit("/desk");
|
||||
});
|
||||
|
||||
it("should load", () => {
|
||||
|
|
|
|||
|
|
@ -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", () => {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("Depends On", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app/website");
|
||||
cy.visit("/desk/website");
|
||||
return cy
|
||||
.window()
|
||||
.its("frappe")
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ context("FileUploader", () => {
|
|||
});
|
||||
|
||||
beforeEach(() => {
|
||||
cy.visit("/app");
|
||||
cy.visit("/desk");
|
||||
cy.wait(2000); // workspace can load async and clear active dialog
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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", () => {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("List View", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app/website");
|
||||
cy.visit("/desk/website");
|
||||
return cy
|
||||
.window()
|
||||
.its("frappe")
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("MultiSelectDialog", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app");
|
||||
cy.visit("/desk");
|
||||
const contact_template = {
|
||||
doctype: "Contact",
|
||||
first_name: "Test",
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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", () => {
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("Rounding behaviour", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app/");
|
||||
cy.visit("/desk/");
|
||||
});
|
||||
|
||||
it("Commercial Rounding", () => {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const list_view = "/app/todo";
|
||||
const list_view = "/desk/todo";
|
||||
|
||||
// test round trip with filter types
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
context("Utils", () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit("/app");
|
||||
cy.visit("/desk");
|
||||
});
|
||||
|
||||
function run_util(name, ...args) {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue