fix(tests): workspace
This commit is contained in:
parent
77b11dd1ce
commit
8793ca506f
9 changed files with 18 additions and 13 deletions
|
|
@ -10,7 +10,6 @@ context("Awesome Bar", () => {
|
|||
});
|
||||
|
||||
beforeEach(() => {
|
||||
cy.get(".navbar .navbar-home").click();
|
||||
cy.findByPlaceholderText("Search or type a command (Ctrl + G)").as("awesome_bar");
|
||||
cy.get("@awesome_bar").type("{selectall}");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -71,6 +71,8 @@ context("Form", () => {
|
|||
let expectBackgroundColor = "rgb(255, 245, 245)";
|
||||
|
||||
cy.visit("/app/contact/new");
|
||||
cy.fill_field("company_name", "Test Company");
|
||||
|
||||
cy.get('.frappe-control[data-fieldname="email_ids"]').as("table");
|
||||
cy.get("@table").find("button.grid-add-row").click();
|
||||
cy.get("@table").find("button.grid-add-row").click();
|
||||
|
|
@ -80,7 +82,6 @@ context("Form", () => {
|
|||
cy.get("@row1").find("input.input-with-feedback.form-control").as("email_input1");
|
||||
|
||||
cy.get("@email_input1").type(website_input, { waitForAnimations: false });
|
||||
cy.fill_field("company_name", "Test Company");
|
||||
|
||||
cy.get("@row2").click();
|
||||
cy.get("@row2").find("input.input-with-feedback.form-control").as("email_input2");
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ context("Workspace Blocks", () => {
|
|||
"item-public",
|
||||
"0"
|
||||
);
|
||||
|
||||
cy.wait(300);
|
||||
cy.get('.standard-actions .btn-primary[data-label="Save"]').click();
|
||||
cy.wait(300);
|
||||
cy.get('.sidebar-item-container[item-name="Test Block Page"]').should(
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView {
|
|||
this.setup_columns();
|
||||
super.setup_new_doc_event();
|
||||
this.setup_events();
|
||||
this.page.main.addClass("report-view");
|
||||
this.page.main.parent().addClass("report-view");
|
||||
}
|
||||
|
||||
setup_events() {
|
||||
|
|
|
|||
|
|
@ -393,7 +393,9 @@ frappe.views.Workspace = class Workspace {
|
|||
let message = __("Workspace {0} Edited Successfully", [
|
||||
old_item.title.bold(),
|
||||
]);
|
||||
frappe.show_alert({ message: message, indicator: "green" });
|
||||
if (!window.Cypress) {
|
||||
frappe.show_alert({ message: message, indicator: "green" });
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
@ -526,10 +528,12 @@ frappe.views.Workspace = class Workspace {
|
|||
let message = __("Workspace {0} created", [
|
||||
new_page.title.bold(),
|
||||
]);
|
||||
frappe.show_alert({
|
||||
message: message,
|
||||
indicator: "green",
|
||||
});
|
||||
if (!window.Cypress) {
|
||||
frappe.show_alert({
|
||||
message: message,
|
||||
indicator: "green",
|
||||
});
|
||||
}
|
||||
|
||||
frappe.boot.sidebar_pages = r.message;
|
||||
this.sidebar.setup_pages();
|
||||
|
|
@ -670,6 +674,7 @@ frappe.views.Workspace = class Workspace {
|
|||
if (res.message) {
|
||||
me.discard = true;
|
||||
me.reload();
|
||||
if (window.Cypress) return;
|
||||
frappe.show_alert({
|
||||
message: __("Saved"),
|
||||
indicator: "green",
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
}
|
||||
/*! This comment will be included even in compressed mode. */
|
||||
#navbar-breadcrumbs {
|
||||
@include get_textstyle("base", "regular");
|
||||
@include get_textstyle("sm", "regular");
|
||||
a {
|
||||
margin-right: 10px;
|
||||
&:before {
|
||||
|
|
|
|||
|
|
@ -573,7 +573,7 @@ body {
|
|||
.link-item {
|
||||
display: flex;
|
||||
text-decoration: none;
|
||||
@include get_textstyle("base", "regular");
|
||||
@include get_textstyle("sm", "regular");
|
||||
color: var(--text-color);
|
||||
padding: 4px;
|
||||
margin-left: -4px;
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@
|
|||
}
|
||||
|
||||
.report-view {
|
||||
max-width: 100%;
|
||||
width: calc(100% - 220px);
|
||||
.result {
|
||||
.dt-row:last-child:not(.dt-row-filter) {
|
||||
.dt-cell {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
--text-2xs: 12px;
|
||||
--text-xs: 12px;
|
||||
--text-sm: 13px;
|
||||
--text-md: 13px; // alias
|
||||
--text-md: 14px; // alias
|
||||
--text-base: 13px;
|
||||
--text-lg: 16px;
|
||||
--text-xl: 18px;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue