fix: lowercase "row"
This commit is contained in:
parent
1cf2c63b7b
commit
30379b71cb
3 changed files with 7 additions and 7 deletions
|
|
@ -25,7 +25,7 @@ context("Grid Row Form Tabs", () => {
|
|||
|
||||
// Add a row to the child 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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
cy.get("@table").find('[data-idx="1"]').as("row1");
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ export default class Grid {
|
|||
|
||||
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);
|
||||
|
||||
// update "Delete" and "Duplicate" button labels
|
||||
|
|
|
|||
|
|
@ -377,7 +377,7 @@ def get_context(context):
|
|||
"No Data",
|
||||
"Delete",
|
||||
"Delete All",
|
||||
"Add Row",
|
||||
"Add row",
|
||||
"Add Multiple",
|
||||
"Download",
|
||||
"of",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue