Browse Source

test: cypress corrections for i18n update

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/1365/head
Raju Udava 3 years ago
parent
commit
b9b04dc863
  1. 4
      scripts/cypress/integration/common/1b_table_column_operations.js
  2. 2
      scripts/cypress/integration/common/2b_table_with_m2m_column.js
  3. 2
      scripts/cypress/integration/common/3a_filter_sort_fields_operations.js
  4. 2
      scripts/cypress/integration/common/4f_grid_view_share.js
  5. 2
      scripts/cypress/integration/common/4f_pg_grid_view_share.js
  6. 4
      scripts/cypress/integration/spec/roleValidation.spec.js

4
scripts/cypress/integration/common/1b_table_column_operations.js

@ -14,7 +14,7 @@ export const genTest = (apiType, dbType) => {
cy.snipActiveModal("Modal_AddNewRow");
cy.getActiveModal()
.find("button")
.contains("Save Row")
.contains("Save row")
.click({ force: true });
cy.toastWait("updated successfully");
@ -120,7 +120,7 @@ export const genTest = (apiType, dbType) => {
.type(updatedRandVal);
cy.getActiveModal()
.find("button")
.contains("Save Row")
.contains("Save row")
.click({ force: true });
cy.toastWait("updated successfully");

2
scripts/cypress/integration/common/2b_table_with_m2m_column.js

@ -79,7 +79,7 @@ export const genTest = (apiType, dbType) => {
.contains("ACADEMY DINOSAUR")
.should("exist");
cy.getActiveModal()
.find('button:contains("Save Row")')
.find('button:contains("Save row")')
.should("exist");
cy.getActiveModal()
.find('button:contains("Cancel")')

2
scripts/cypress/integration/common/3a_filter_sort_fields_operations.js

@ -42,7 +42,7 @@ export const genTest = (apiType, dbType) => {
cy.get("#data-table-form-Country > input")
.first()
.type("Test Country");
cy.contains("Save Row").filter("button").click();
cy.contains("Save row").filter("button").click();
cy.toastWait("updated successfully");

2
scripts/cypress/integration/common/4f_grid_view_share.js

@ -419,7 +419,7 @@ export const genTest = (apiType, dbType) => {
.first()
.click()
.type("a");
cy.contains("Save Row").filter("button").click({ force: true });
cy.contains("Save row").filter("button").click({ force: true });
cy.toastWait("updated successfully");
// add column

2
scripts/cypress/integration/common/4f_pg_grid_view_share.js

@ -415,7 +415,7 @@ export const genTest = (apiType, dbType) => {
.first()
.click()
.type("a");
cy.contains("Save Row").filter("button").click({ force: true });
cy.contains("Save row").filter("button").click({ force: true });
cy.toastWait("updated successfully");
// add column

4
scripts/cypress/integration/spec/roleValidation.spec.js

@ -95,7 +95,7 @@ export function _editData(roleType, previewMode) {
//
//cy.get('.nc-row-expand-icon').eq(4).click({ force: true })
cy.get(".v-input.row-checkbox").eq(4).next().next().click({ force: true });
cy.getActiveModal().find("button").contains("Save Row").should("exist");
cy.getActiveModal().find("button").contains("Save row").should("exist");
cy.get("body").type("{esc}");
} else {
// update cell contents option using row expander should be disabled
@ -104,7 +104,7 @@ export function _editData(roleType, previewMode) {
cy.get(".v-input.row-checkbox").eq(4).next().next().click({ force: true });
cy.getActiveModal()
.find("button:disabled")
.contains("Save Row")
.contains("Save row")
.should("exist");
cy.getActiveModal().find("button").contains("Cancel").click();
cy.get("body").type("{esc}");

Loading…
Cancel
Save