fix: grid search test and semgrep

This commit is contained in:
sokumon 2025-11-14 08:51:37 +05:30
parent c8f499ab2f
commit f49d7cf53c
3 changed files with 6 additions and 4 deletions

View file

@ -40,7 +40,7 @@ context("Grid Search", () => {
});
});
cy.visit(`/app/doctype-with-child-table/Test Grid Search`);
cy.visit(`/desk/doctype-with-child-table/Test Grid Search`);
cy.get('.frappe-control[data-fieldname="child_table_1"]').as("table");
cy.get("@table").find(".grid-row-check:last").click();
@ -49,7 +49,7 @@ context("Grid Search", () => {
});
it("test search field for different fieldtypes", () => {
cy.visit(`/app/doctype-with-child-table/Test Grid Search`);
cy.visit(`/desk/doctype-with-child-table/Test Grid Search`);
cy.get('.frappe-control[data-fieldname="child_table_1"]').as("table");

View file

@ -101,6 +101,8 @@ def is_workspace_manager():
def create_workspace_sidebar_for_workspaces():
import click
from frappe.query_builder import DocType
workspace = DocType("Workspace")
@ -118,7 +120,7 @@ def create_workspace_sidebar_for_workspaces():
sidebar = frappe.new_doc("Workspace Sidebar")
sidebar.title = workspace
sidebar.header_icon = frappe.db.get_value("Workspace", workspace, "icon")
print("Creating Sidebar Items for", workspace)
click.echo("Creating Sidebar Items for", workspace)
shortcuts = workspace_doc.shortcuts
items = []

View file

@ -58,6 +58,7 @@
.grid-static-col,
.row-check,
.row-index {
height: 32px;
padding: 4px 8px !important;
background-color: var(--subtle-fg);
}
@ -686,7 +687,6 @@
&:focus-visible {
@include grid-focus();
}
.grid-static-col.col-xs-1 {
flex: 1 0 60px;
width: 60px;