fix: lowercase "row"

This commit is contained in:
barredterra 2025-12-31 16:11:31 +01:00
parent 1cf2c63b7b
commit 30379b71cb
3 changed files with 7 additions and 7 deletions

View file

@ -25,7 +25,7 @@ context("Grid Row Form Tabs", () => {
// Add a row to the child table // Add a row to the child table
cy.get('.frappe-control[data-fieldname="items"]').as("table"); cy.get('.frappe-control[data-fieldname="items"]').as("table");
cy.get("@table").findByRole("button", { name: "Add Row" }).click(); cy.get("@table").findByRole("button", { name: "Add row" }).click();
// Open the grid row form // Open the grid row form
cy.get("@table").find('[data-idx="1"]').as("row1"); cy.get("@table").find('[data-idx="1"]').as("row1");
@ -48,7 +48,7 @@ context("Grid Row Form Tabs", () => {
// Add a row to the child table // Add a row to the child table
cy.get('.frappe-control[data-fieldname="items"]').as("table"); cy.get('.frappe-control[data-fieldname="items"]').as("table");
cy.get("@table").findByRole("button", { name: "Add Row" }).click(); cy.get("@table").findByRole("button", { name: "Add row" }).click();
// Open the grid row form // Open the grid row form
cy.get("@table").find('[data-idx="1"]').as("row1"); cy.get("@table").find('[data-idx="1"]').as("row1");
@ -88,8 +88,8 @@ context("Grid Row Form Tabs", () => {
// Add two rows to the child table // Add two rows to the child table
cy.get('.frappe-control[data-fieldname="items"]').as("table"); cy.get('.frappe-control[data-fieldname="items"]').as("table");
cy.get("@table").findByRole("button", { name: "Add Row" }).click(); cy.get("@table").findByRole("button", { name: "Add row" }).click();
cy.get("@table").findByRole("button", { name: "Add Row" }).click(); cy.get("@table").findByRole("button", { name: "Add row" }).click();
// Open first row and switch to Details tab // Open first row and switch to Details tab
cy.get("@table").find('[data-idx="1"]').as("row1"); cy.get("@table").find('[data-idx="1"]').as("row1");
@ -118,7 +118,7 @@ context("Grid Row Form Tabs", () => {
// Add a row to the child table // Add a row to the child table
cy.get('.frappe-control[data-fieldname="items"]').as("table"); cy.get('.frappe-control[data-fieldname="items"]').as("table");
cy.get("@table").findByRole("button", { name: "Add Row" }).click(); cy.get("@table").findByRole("button", { name: "Add row" }).click();
// Open the grid row form // Open the grid row form
cy.get("@table").find('[data-idx="1"]').as("row1"); cy.get("@table").find('[data-idx="1"]').as("row1");

View file

@ -222,7 +222,7 @@ export default class Grid {
const num_selected_rows = this.get_selected_children().length; const num_selected_rows = this.get_selected_children().length;
// toggle "Add Row" button // toggle "Add row" button
this.wrapper.find(".grid-add-row").toggleClass("hidden", num_selected_rows > 0); this.wrapper.find(".grid-add-row").toggleClass("hidden", num_selected_rows > 0);
// update "Delete" and "Duplicate" button labels // update "Delete" and "Duplicate" button labels

View file

@ -377,7 +377,7 @@ def get_context(context):
"No Data", "No Data",
"Delete", "Delete",
"Delete All", "Delete All",
"Add Row", "Add row",
"Add Multiple", "Add Multiple",
"Download", "Download",
"of", "of",