Browse Source

test: local storage handling for tableOps suite

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3667/head
Raju Udava 2 years ago
parent
commit
4582c0ed57
  1. 21
      scripts/cypress/integration/common/1a_table_operations.js
  2. 27
      scripts/cypress/integration/common/1b_table_column_operations.js
  3. 18
      scripts/cypress/integration/common/1c_sql_view.js
  4. 13
      scripts/cypress/integration/common/1e_meta_sync.js
  5. 31
      scripts/cypress/integration/common/2a_table_with_belongs_to_colulmn.js
  6. 32
      scripts/cypress/integration/common/2b_table_with_m2m_column.js
  7. 361
      scripts/cypress/integration/common/3a_filter_sort_fields_operations.js
  8. 25
      scripts/cypress/integration/common/3b_formula_column.js
  9. 44
      scripts/cypress/integration/common/3c_lookup_column.js
  10. 46
      scripts/cypress/integration/common/3d_rollup_column.js
  11. 19
      scripts/cypress/integration/common/3f_link_to_another_record.js

21
scripts/cypress/integration/common/1a_table_operations.js

@ -7,18 +7,25 @@ export const genTest = (apiType, dbType) => {
describe(`${ describe(`${
dbType === "xcdb" ? "Meta - " : "" dbType === "xcdb" ? "Meta - " : ""
}${apiType.toUpperCase()} api - Table`, () => { }${apiType.toUpperCase()} api - Table`, () => {
before(() => { // before(() => {
cy.saveLocalStorage(); // // standalone test
cy.wait(1000); // // loginPage.loginAndOpenProject(apiType, dbType);
}); //
// // open a table to work on views
// //
// // cy.restoreLocalStorage();
// });
beforeEach(() => { beforeEach(() => {
cy.restoreLocalStorage(); cy.restoreLocalStorage();
cy.wait(1000);
}); });
after(() => { afterEach(() => {
}); cy.saveLocalStorage();
})
// after(() => {
// });
const name = "tablex"; const name = "tablex";

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

@ -34,22 +34,26 @@ export const genTest = (apiType, dbType) => {
const randVal = "Test@1234.com"; const randVal = "Test@1234.com";
const updatedRandVal = "Updated@1234.com"; const updatedRandVal = "Updated@1234.com";
before(() => { // before(() => {
cy.fileHook(); // cy.restoreLocalStorage();
mainPage.tabReset(); // cy.createTable(name);
cy.createTable(name); // })
});
beforeEach(() => { beforeEach(() => {
cy.fileHook(); cy.restoreLocalStorage();
}) })
// delete table afterEach(() => {
after(() => { cy.saveLocalStorage();
cy.deleteTable(name, dbType); })
});
// // delete table
// after(() => {
// cy.deleteTable(name, dbType);
// });
it("Create Table Column", () => { it("Create Table Column", () => {
cy.createTable(name);
mainPage.addColumn(colName, name); mainPage.addColumn(colName, name);
}); });
@ -167,6 +171,9 @@ export const genTest = (apiType, dbType) => {
// verify if everything is wiped off // verify if everything is wiped off
mainPage.getCell("Title", 1).contains("a1").should("not.exist"); mainPage.getCell("Title", 1).contains("a1").should("not.exist");
// clean-up
cy.deleteTable(name, dbType);
}); });
}); });
}; };

18
scripts/cypress/integration/common/1c_sql_view.js

@ -10,13 +10,17 @@ export const genTest = (apiType, dbType) => {
describe(`${apiType.toUpperCase()} SQL Views`, () => { describe(`${apiType.toUpperCase()} SQL Views`, () => {
// Run once before test- create project (rest/graphql) // Run once before test- create project (rest/graphql)
// //
before(() => { // before(() => {
cy.fileHook(); // cy.fileHook();
mainPage.tabReset(); // mainPage.tabReset();
}); // });
beforeEach(() => { beforeEach(() => {
cy.fileHook(); cy.restoreLocalStorage();
})
afterEach(() => {
cy.saveLocalStorage();
}) })
it(`XCDB: SQL View Column operations`, () => { it(`XCDB: SQL View Column operations`, () => {
@ -168,10 +172,6 @@ export const genTest = (apiType, dbType) => {
cy.closeViewsTab("StaffList"); cy.closeViewsTab("StaffList");
} }
}); });
after(() => {
// void
});
}); });
}; };

13
scripts/cypress/integration/common/1e_meta_sync.js

@ -18,22 +18,23 @@ export const genTest = (apiType, dbType) => {
// Run once before test- create project (rest/graphql) // Run once before test- create project (rest/graphql)
// //
before(() => { before(() => {
cy.restoreLocalStorage();
if (isXcdb()) { if (isXcdb()) {
cy.log(getProjectString()); cy.log(getProjectString());
projPrefix = `${getProjectString()}`; projPrefix = `${getProjectString()}`;
dbCmd = `sqliteExec`; dbCmd = `sqliteExec`;
tblDisplayPrefix = `${getProjectString()}`; tblDisplayPrefix = `${getProjectString()}`;
} }
mainPage.tabReset();
mainPage.openMetaTab(); mainPage.openMetaTab();
}); })
beforeEach(() => { beforeEach(() => {
}); cy.restoreLocalStorage();
})
after(() => { afterEach(() => {
// mainPage.closeMetaTab(); cy.saveLocalStorage();
}); })
it(`Create table`, () => { it(`Create table`, () => {
// Create Table // Create Table

31
scripts/cypress/integration/common/2a_table_with_belongs_to_colulmn.js

@ -5,28 +5,25 @@ export const genTest = (apiType, dbType) => {
if (!isTestSuiteActive(apiType, dbType)) return; if (!isTestSuiteActive(apiType, dbType)) return;
describe(`${apiType.toUpperCase()} api - Table: belongs to, link record`, () => { describe(`${apiType.toUpperCase()} api - Table: belongs to, link record`, () => {
before(() => { // before(() => {
cy.fileHook(); // cy.restoreLocalStorage();
mainPage.tabReset(); // cy.openTableTab("Country", 25);
// // });
// // kludge: wait for page load to finish
// cy.wait(1000);
// // close team & auth tab
// cy.get('button.ant-tabs-tab-remove').should('exist').click();
// cy.wait(1000);
cy.openTableTab("Country", 25);
});
beforeEach(() => { beforeEach(() => {
cy.fileHook(); cy.restoreLocalStorage();
}); });
after(() => { afterEach(() => {
cy.closeTableTab("City"); cy.saveLocalStorage();
}); })
// after(() => {
// cy.closeTableTab("City");
// });
it("URL validation", () => { it("URL validation", () => {
cy.openTableTab("Country", 25);
// column name validation // column name validation
// cy.get(`.project-tab:contains(Country):visible`).should("exist"); // cy.get(`.project-tab:contains(Country):visible`).should("exist");
// URL validation // URL validation
@ -103,6 +100,8 @@ export const genTest = (apiType, dbType) => {
.find('.nc-virtual-cell > .chips-wrapper > .chips > .group > .name') .find('.nc-virtual-cell > .chips-wrapper > .chips > .group > .name')
.contains("Saudi Arabia") .contains("Saudi Arabia")
.should('exist'); .should('exist');
cy.closeTableTab("City");
}) })
}); });
}; };

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

@ -5,28 +5,24 @@ export const genTest = (apiType, dbType) => {
if (!isTestSuiteActive(apiType, dbType)) return; if (!isTestSuiteActive(apiType, dbType)) return;
describe(`${apiType.toUpperCase()} api - M2M Column validation`, () => { describe(`${apiType.toUpperCase()} api - M2M Column validation`, () => {
before(() => { // before(() => {
cy.fileHook(); // cy.openTableTab("Actor", 25);
mainPage.tabReset(); // });
// // kludge: wait for page load to finish
// cy.wait(1000);
// // close team & auth tab
// cy.get('button.ant-tabs-tab-remove').should('exist').click();
// cy.wait(1000);
cy.openTableTab("Actor", 25);
});
beforeEach(() => { beforeEach(() => {
cy.fileHook(); cy.restoreLocalStorage();
}); })
after(() => { afterEach(() => {
cy.closeTableTab("Actor"); cy.saveLocalStorage();
}); })
// after(() => {
// cy.closeTableTab("Actor");
// });
it("Table column header, URL validation", () => { it("Table column header, URL validation", () => {
cy.openTableTab("Actor", 25);
// column name validation // column name validation
// cy.get(`.project-tab:contains(Actor):visible`).should("exist"); // cy.get(`.project-tab:contains(Actor):visible`).should("exist");
// URL validation // URL validation
@ -117,6 +113,8 @@ export const genTest = (apiType, dbType) => {
.click(); .click();
cy.getActiveModal().find("button.ant-modal-close").click(); cy.getActiveModal().find("button.ant-modal-close").click();
}); });
cy.closeTableTab("Actor");
}); });
}); });
}; };

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

@ -5,212 +5,195 @@ import { isTestSuiteActive } from "../../support/page_objects/projectConstants";
export const genTest = (apiType, dbType) => { export const genTest = (apiType, dbType) => {
if (!isTestSuiteActive(apiType, dbType)) return; if (!isTestSuiteActive(apiType, dbType)) return;
describe(`${apiType.toUpperCase()} api - Filter, Fields, Sort`, () => { describe(`${apiType.toUpperCase()} api - Grid operations`, () => {
before(() => { // before(() => {
// loginPage.loginAndOpenProject(apiType, dbType); // // loginPage.loginAndOpenProject(apiType, dbType);
//
// open country table // // open country table
// cy.openTableTab("Country", 25);
// });
//
// after(() => {
// cy.closeTableTab("Country");
// });
beforeEach(() => {
cy.restoreLocalStorage();
})
afterEach(() => {
cy.saveLocalStorage();
})
it("Check country table - Pagination", () => {
cy.openTableTab("Country", 25); cy.openTableTab("Country", 25);
cy.get(".nc-pagination").should("exist");
// verify > pagination option
mainPage.getPagination(">").click();
mainPage
.getPagination(2)
.should("have.class", "ant-pagination-item-active");
// verify < pagination option
mainPage.getPagination("<").click();
mainPage
.getPagination(1)
.should("have.class", "ant-pagination-item-active");
}); });
after(() => { // create new row using + button in header
cy.closeTableTab("Country"); //
it("Add row using tool header button", () => {
// add a row to end of Country table
cy.get(".nc-add-new-row-btn").click();
cy.wait(1000);
cy.get(".nc-expand-col-Country").find(".nc-cell > input").first().type("Test Country");
cy.getActiveDrawer()
.find(".ant-btn-primary")
.contains("Save row")
.click();
// cy.get("#data-table-form-Country > input")
// .first()
// .type("Test Country");
// cy.contains("Save row").filter("button").click();
cy.toastWait("updated successfully");
cy.getActiveDrawer()
.find(".ant-btn")
.contains("Cancel")
.click();
// verify
mainPage.getPagination(5).click();
// kludge: flicker on load
cy.wait(3000)
mainPage
.getCell("Country", 10)
.contains("Test Country")
.should("exist");
}); });
describe(`Pagination`, () => { // delete single row
beforeEach(() => { //
}) it("Delete Row", () => {
// delete row added in previous step
// check pagination mainPage.getCell("Country", 10).rightclick();
it("Check country table - Pagination", () => { cy.getActiveMenu(".nc-dropdown-grid-context-menu").contains("Delete Row").click();
cy.get(".nc-pagination").should("exist");
// cy.toastWait('Deleted row successfully')
// verify > pagination option
mainPage.getPagination(">").click(); // verify
mainPage cy.get(`:nth-child(10) > [data-title="Country"]`).should("not.exist");
.getPagination(2)
.should("have.class", "ant-pagination-item-active"); mainPage.getPagination(1).click();
// verify < pagination option
mainPage.getPagination("<").click();
mainPage
.getPagination(1)
.should("have.class", "ant-pagination-item-active");
});
}); });
describe(`Row operations`, () => { // create new row using right click menu option
beforeEach(() => { //
cy.fileHook(); it.skip("Add row using rightclick menu option", () => {
}) // Temporary
mainPage.getPagination(5).click();
// create new row using + button in header
// mainPage.getCell("Country", 9).rightclick({ force: true });
it("Add row using tool header button", () => { cy.getActiveMenu(".nc-dropdown-grid-context-menu")
// add a row to end of Country table .contains("Insert New Row")
cy.get(".nc-add-new-row-btn").click(); .click({ force: true });
cy.wait(1000); mainPage
cy.get(".nc-expand-col-Country").find(".nc-cell > input").first().type("Test Country"); .getCell("Country", 10)
cy.getActiveDrawer() .dblclick()
.find(".ant-btn-primary") .find("input")
.contains("Save row") .type("Test Country-1{enter}");
.click();
mainPage.getCell("Country", 10).rightclick({ force: true });
// cy.get("#data-table-form-Country > input") cy.getActiveMenu(".nc-dropdown-grid-context-menu")
// .first() .contains("Insert New Row")
// .type("Test Country"); .click({ force: true });
// cy.contains("Save row").filter("button").click(); mainPage
.getCell("Country", 11)
cy.toastWait("updated successfully"); .dblclick()
cy.getActiveDrawer() .find("input")
.find(".ant-btn") .type("Test Country-2{enter}");
.contains("Cancel")
.click(); // GUI-v2 Kludge:
// to move cursor away from input field; enter key is not recognized
// verify // mainPage.getCell("Country", 10).click()
mainPage.getPagination(5).click();
// kludge: flicker on load // verify
cy.wait(3000) mainPage
mainPage .getCell("Country", 10)
.getCell("Country", 10) .contains("Test Country-1")
.contains("Test Country") .should("exist");
.should("exist"); mainPage
}); .getCell("Country", 11)
.contains("Test Country-2")
// delete single row .should("exist");
//
it("Delete Row", () => {
// delete row added in previous step
mainPage.getCell("Country", 10).rightclick();
cy.getActiveMenu(".nc-dropdown-grid-context-menu").contains("Delete Row").click();
// cy.toastWait('Deleted row successfully')
// verify
cy.get(`:nth-child(10) > [data-title="Country"]`).should("not.exist");
mainPage.getPagination(1).click();
});
// create new row using right click menu option
//
it.skip("Add row using rightclick menu option", () => {
// Temporary
mainPage.getPagination(5).click();
mainPage.getCell("Country", 9).rightclick({ force: true });
cy.getActiveMenu(".nc-dropdown-grid-context-menu")
.contains("Insert New Row")
.click({ force: true });
mainPage
.getCell("Country", 10)
.dblclick()
.find("input")
.type("Test Country-1{enter}");
mainPage.getCell("Country", 10).rightclick({ force: true });
cy.getActiveMenu(".nc-dropdown-grid-context-menu")
.contains("Insert New Row")
.click({ force: true });
mainPage
.getCell("Country", 11)
.dblclick()
.find("input")
.type("Test Country-2{enter}");
// GUI-v2 Kludge:
// to move cursor away from input field; enter key is not recognized
// mainPage.getCell("Country", 10).click()
// verify
mainPage
.getCell("Country", 10)
.contains("Test Country-1")
.should("exist");
mainPage
.getCell("Country", 11)
.contains("Test Country-2")
.should("exist");
});
// delete selected rows (multiple)
//
it.skip("Delete Selected", () => {
cy.get(".ant-checkbox").should('exist')
.eq(10).click({ force: true });
cy.get(".ant-checkbox").should('exist')
.eq(11).click({ force: true });
mainPage.getCell("Country", 10).rightclick({ force: true });
cy.getActiveMenu(".nc-dropdown-grid-context-menu")
.contains("Delete Selected Rows")
.click({ force: true });
// verify
// mainPage.getCell("Country", 10).should("not.exist");
// mainPage.getCell("Country", 11).should("not.exist");
cy.get(
`:nth-child(10) > [data-title="Country"]`
).should("not.exist");
cy.get(
`:nth-child(11) > [data-title="Country"]`
).should("not.exist");
mainPage.getPagination(1).click();
});
}); });
describe(`Sort operations`, () => { // delete selected rows (multiple)
beforeEach(() => { //
cy.fileHook(); it.skip("Delete Selected", () => {
}) cy.get(".ant-checkbox").should('exist')
.eq(10).click({ force: true });
cy.get(".ant-checkbox").should('exist')
.eq(11).click({ force: true });
mainPage.getCell("Country", 10).rightclick({ force: true });
cy.getActiveMenu(".nc-dropdown-grid-context-menu")
.contains("Delete Selected Rows")
.click({ force: true });
// verify
// mainPage.getCell("Country", 10).should("not.exist");
// mainPage.getCell("Country", 11).should("not.exist");
cy.get(
`:nth-child(10) > [data-title="Country"]`
).should("not.exist");
cy.get(
`:nth-child(11) > [data-title="Country"]`
).should("not.exist");
mainPage.getPagination(1).click();
});
it("Enable sort", () => {
mainPage.sortField("Country", "Z → A");
cy.contains("Zambia").should("exist");
});
it("Disable sort", () => { it("Enable sort", () => {
mainPage.clearSort(); mainPage.sortField("Country", "Z → A");
cy.contains("Zambia").should("not.exist"); cy.contains("Zambia").should("exist");
});
}); });
describe("Field Operation", () => { it("Disable sort", () => {
beforeEach(() => { mainPage.clearSort();
cy.fileHook(); cy.contains("Zambia").should("not.exist");
}) });
it("Hide field", () => { it("Hide field", () => {
mainPage.hideField("LastUpdate"); mainPage.hideField("LastUpdate");
}); });
it("Show field", () => { it("Show field", () => {
mainPage.unhideField("LastUpdate"); mainPage.unhideField("LastUpdate");
});
}); });
describe("Filter operations", () => { it("Create Filter", () => {
beforeEach(() => { mainPage.filterField("Country", "is equal", "India");
cy.fileHook(); // cy.get("td:contains(India)").should("exist");
}) mainPage.getCell("Country", 1)
.contains("India")
it("Create Filter", () => { .should("exist");
mainPage.filterField("Country", "is equal", "India"); });
// cy.get("td:contains(India)").should("exist");
mainPage.getCell("Country", 1) it("Delete Filter", () => {
.contains("India") // remove sort and check
.should("exist"); mainPage.filterReset();
}); mainPage.getCell("Country", 1)
.contains("India")
it("Delete Filter", () => { .should("not.exist");
// remove sort and check // cy.contains("td:contains(India)").should("not.exist");
mainPage.filterReset();
mainPage.getCell("Country", 1) cy.closeTableTab("Country");
.contains("India")
.should("not.exist");
// cy.contains("td:contains(India)").should("not.exist");
});
}); });
}); });
}; };

25
scripts/cypress/integration/common/3b_formula_column.js

@ -11,17 +11,22 @@ export const genTest = (apiType, dbType) => {
describe(`${apiType.toUpperCase()} api - FORMULA`, () => { describe(`${apiType.toUpperCase()} api - FORMULA`, () => {
// Run once before test- create project (rest/graphql) // Run once before test- create project (rest/graphql)
// //
before(() => { // before(() => {
// loginPage.loginAndOpenProject(apiType, dbType) // // loginPage.loginAndOpenProject(apiType, dbType)
cy.openTableTab("City", 25); // cy.openTableTab("City", 25);
}); // });
beforeEach(() => { beforeEach(() => {
}); cy.restoreLocalStorage();
})
after(() => { afterEach(() => {
cy.closeTableTab("City"); cy.saveLocalStorage();
}); })
// after(() => {
// cy.closeTableTab("City");
// });
// Given rowname & expected result for first 10 entries, validate // Given rowname & expected result for first 10 entries, validate
// NOTE: Scroll issue with Cypress automation, to fix // NOTE: Scroll issue with Cypress automation, to fix
@ -157,6 +162,8 @@ export const genTest = (apiType, dbType) => {
} }
it("Formula: ADD, AVG, LEN", () => { it("Formula: ADD, AVG, LEN", () => {
cy.openTableTab("City", 25);
addFormulaBasedColumn( addFormulaBasedColumn(
"NC_MATH_0", "NC_MATH_0",
"ADD({CityId}, {CountryId}) + AVG({CityId}, {CountryId}) + LEN({City})" "ADD({CityId}, {CountryId}) + AVG({CityId}, {CountryId}) + LEN({City})"
@ -217,6 +224,8 @@ export const genTest = (apiType, dbType) => {
if (dbType === 'mysql') editColumnByName("NC_MATH_2", "NC_NOW", `NOW()`); if (dbType === 'mysql') editColumnByName("NC_MATH_2", "NC_NOW", `NOW()`);
else editColumnByName("NC_MATH_1", "NC_NOW", `NOW()`); else editColumnByName("NC_MATH_1", "NC_NOW", `NOW()`);
deleteColumnByName("NC_NOW"); deleteColumnByName("NC_NOW");
cy.closeTableTab("City");
}); });
}); });
}; };

44
scripts/cypress/integration/common/3c_lookup_column.js

@ -13,28 +13,32 @@ export const genTest = (apiType, dbType) => {
// Run once before test- create project (rest/graphql) // Run once before test- create project (rest/graphql)
// //
before(() => { // before(() => {
cy.fileHook(); // cy.fileHook();
mainPage.tabReset(); // mainPage.tabReset();
// open a table to work on views // // open a table to work on views
// // //
//
// // kludge: wait for page load to finish // // // kludge: wait for page load to finish
// cy.wait(1000); // // cy.wait(1000);
// // close team & auth tab // // // close team & auth tab
// cy.get('button.ant-tabs-tab-remove').should('exist').click(); // // cy.get('button.ant-tabs-tab-remove').should('exist').click();
// cy.wait(1000); // // cy.wait(1000);
//
cy.openTableTab("City", 25); // cy.openTableTab("City", 25);
}); // });
beforeEach(() => { beforeEach(() => {
cy.fileHook(); cy.restoreLocalStorage();
}); });
after(() => { afterEach(() => {
cy.closeTableTab("City"); cy.saveLocalStorage();
}); })
// after(() => {
// cy.closeTableTab("City");
// });
// Routine to create a new look up column // Routine to create a new look up column
// //
@ -74,6 +78,8 @@ export const genTest = (apiType, dbType) => {
// Test case // Test case
it("Add Lookup column (Address, PostalCode) & Delete", () => { it("Add Lookup column (Address, PostalCode) & Delete", () => {
cy.openTableTab("City", 25);
addLookUpColumn("Address", "PostalCode"); addLookUpColumn("Address", "PostalCode");
// Verify first entry, will be displayed as alias here 'childColumn (from childTable)' // Verify first entry, will be displayed as alias here 'childColumn (from childTable)'
@ -82,6 +88,8 @@ export const genTest = (apiType, dbType) => {
.should("exist"); .should("exist");
deleteColumnByName("PostalCode"); deleteColumnByName("PostalCode");
cy.closeTableTab("City");
}); });
it.skip("Add Lookup column (Country, CountryId) & Delete", () => { it.skip("Add Lookup column (Country, CountryId) & Delete", () => {

46
scripts/cypress/integration/common/3d_rollup_column.js

@ -14,28 +14,32 @@ export const genTest = (apiType, dbType) => {
// Run once before test- create project (rest/graphql) // Run once before test- create project (rest/graphql)
// //
before(() => { // before(() => {
cy.fileHook(); // cy.fileHook();
mainPage.tabReset(); // mainPage.tabReset();
//
// // kludge: wait for page load to finish // // // kludge: wait for page load to finish
// cy.wait(1000); // // cy.wait(1000);
// // close team & auth tab // // // close team & auth tab
// cy.get('button.ant-tabs-tab-remove').should('exist').click(); // // cy.get('button.ant-tabs-tab-remove').should('exist').click();
// cy.wait(1000); // // cy.wait(1000);
//
// open a table to work on views // // open a table to work on views
// // //
cy.openTableTab("Country", 25); // cy.openTableTab("Country", 25);
}); // });
beforeEach(() => { beforeEach(() => {
cy.fileHook(); cy.restoreLocalStorage();
}); })
after(() => { afterEach(() => {
cy.closeTableTab("Country"); cy.saveLocalStorage();
}); })
// after(() => {
// cy.closeTableTab("Country");
// });
// Routine to create a new look up column // Routine to create a new look up column
// //
@ -106,6 +110,8 @@ export const genTest = (apiType, dbType) => {
// Test case // Test case
it("Add Rollup column (City, City, count) & Delete", () => { it("Add Rollup column (City, City, count) & Delete", () => {
cy.openTableTab("Country", 25);
addRollUpColumn("RollUpCol", "City", "City", "count"); addRollUpColumn("RollUpCol", "City", "City", "count");
// Verify first entry, will be displayed as alias here 'childColumn (from childTable)' // Verify first entry, will be displayed as alias here 'childColumn (from childTable)'
@ -116,6 +122,8 @@ export const genTest = (apiType, dbType) => {
// editColumnByName("RollUpCol_2", "RollUpCol_New"); // editColumnByName("RollUpCol_2", "RollUpCol_New");
deleteColumnByName("RollUpCol"); deleteColumnByName("RollUpCol");
cy.closeTableTab("Country");
}); });
it.skip("Add Rollup column (City, CountryId, count) & Delete", () => { it.skip("Add Rollup column (City, CountryId, count) & Delete", () => {

19
scripts/cypress/integration/common/3f_link_to_another_record.js

@ -103,15 +103,14 @@ export const genTest = (apiType, dbType) => {
cy.wait(1000); cy.wait(1000);
} }
before(() => { // before(() => {
// required for standalone test // // required for standalone test
// loginPage.loginAndOpenProject(apiType, dbType); // // loginPage.loginAndOpenProject(apiType, dbType);
// });
cy.createTable("Sheet1");
cy.createTable("Sheet2");
afterEach(() => {
cy.saveLocalStorage(); cy.saveLocalStorage();
}); })
beforeEach(() => { beforeEach(() => {
cy.restoreLocalStorage(); cy.restoreLocalStorage();
@ -120,6 +119,8 @@ export const genTest = (apiType, dbType) => {
after(() => { after(() => {
// Cleanup // Cleanup
// //
cy.restoreLocalStorage();
cy.openTableTab("Sheet1", 0); cy.openTableTab("Sheet1", 0);
mainPage.deleteColumn("Link1-2hm"); mainPage.deleteColumn("Link1-2hm");
mainPage.deleteColumn("Link1-2mm"); mainPage.deleteColumn("Link1-2mm");
@ -127,12 +128,16 @@ export const genTest = (apiType, dbType) => {
cy.deleteTable("Sheet1"); cy.deleteTable("Sheet1");
cy.deleteTable("Sheet2"); cy.deleteTable("Sheet2");
cy.saveLocalStorage();
}); });
/////////////////////////////////////////////////// ///////////////////////////////////////////////////
// Test case // Test case
it("Create Link columns", () => { it("Create Link columns", () => {
cy.createTable("Sheet1");
cy.createTable("Sheet2");
cy.openTableTab("Sheet1", 0); cy.openTableTab("Sheet1", 0);
addRow(1, "1a"); addRow(1, "1a");
addRow(2, "1b"); addRow(2, "1b");

Loading…
Cancel
Save