|
|
@ -23,13 +23,18 @@ function verifyExpandFormHeader(title) { |
|
|
|
export const genTest = (apiType, dbType) => { |
|
|
|
export const genTest = (apiType, dbType) => { |
|
|
|
if (!isTestSuiteActive(apiType, dbType)) return; |
|
|
|
if (!isTestSuiteActive(apiType, dbType)) return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let clear; |
|
|
|
|
|
|
|
|
|
|
|
describe(`${apiType.toUpperCase()} api - Table views: Expanded form`, () => { |
|
|
|
describe(`${apiType.toUpperCase()} api - Table views: Expanded form`, () => { |
|
|
|
before(() => { |
|
|
|
before(() => { |
|
|
|
cy.restoreLocalStorage(); |
|
|
|
cy.restoreLocalStorage(); |
|
|
|
|
|
|
|
|
|
|
|
// open a table to work on views
|
|
|
|
// open a table to work on views
|
|
|
|
//
|
|
|
|
//
|
|
|
|
cy.openTableTab("Country", 25); |
|
|
|
cy.openTableTab('Country', 25); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clear = Cypress.LocalStorage.clear; |
|
|
|
|
|
|
|
Cypress.LocalStorage.clear = () => {} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
beforeEach(() => { |
|
|
|
beforeEach(() => { |
|
|
@ -44,6 +49,7 @@ export const genTest = (apiType, dbType) => { |
|
|
|
cy.restoreLocalStorage(); |
|
|
|
cy.restoreLocalStorage(); |
|
|
|
cy.closeTableTab("Country"); |
|
|
|
cy.closeTableTab("Country"); |
|
|
|
cy.saveLocalStorage(); |
|
|
|
cy.saveLocalStorage(); |
|
|
|
|
|
|
|
Cypress.LocalStorage.clear = clear; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// Common routine to create/edit/delete GRID & GALLERY view
|
|
|
|
// Common routine to create/edit/delete GRID & GALLERY view
|
|
|
|