|
|
@ -16,18 +16,24 @@ export const genTest = (type, xcdb) => { |
|
|
|
|
|
|
|
|
|
|
|
it(`XCDB: SQL View Column operations`, () => { |
|
|
|
it(`XCDB: SQL View Column operations`, () => { |
|
|
|
// Open one of the views & verify validity of first two entries
|
|
|
|
// Open one of the views & verify validity of first two entries
|
|
|
|
|
|
|
|
if (isXcdb()) { |
|
|
|
cy.openViewsTab("CustomerList", 25); |
|
|
|
cy.openViewsTab("CustomerList", 25); |
|
|
|
|
|
|
|
|
|
|
|
// Record-1 validation
|
|
|
|
// Record-1 validation
|
|
|
|
mainPage.getCell(`ID`, 1).contains("1").should("exist"); |
|
|
|
mainPage.getCell(`ID`, 1).contains("1").should("exist"); |
|
|
|
mainPage.getCell(`Name`, 1).contains("MARY SMITH").should("exist"); |
|
|
|
mainPage.getCell(`Name`, 1).contains("MARY SMITH").should("exist"); |
|
|
|
mainPage.getCell(`Address`, 1).contains("1913 Hanoi Way").should("exist"); |
|
|
|
mainPage |
|
|
|
|
|
|
|
.getCell(`Address`, 1) |
|
|
|
|
|
|
|
.contains("1913 Hanoi Way") |
|
|
|
|
|
|
|
.should("exist"); |
|
|
|
mainPage.getCell(`ZipCode`, 1).contains("35200").should("exist"); |
|
|
|
mainPage.getCell(`ZipCode`, 1).contains("35200").should("exist"); |
|
|
|
|
|
|
|
|
|
|
|
// Record-2 validation
|
|
|
|
// Record-2 validation
|
|
|
|
mainPage.getCell(`ID`, 2).contains("2").should("exist"); |
|
|
|
mainPage.getCell(`ID`, 2).contains("2").should("exist"); |
|
|
|
mainPage.getCell(`Name`, 2).contains("PATRICIA JOHNSON").should("exist"); |
|
|
|
mainPage |
|
|
|
|
|
|
|
.getCell(`Name`, 2) |
|
|
|
|
|
|
|
.contains("PATRICIA JOHNSON") |
|
|
|
|
|
|
|
.should("exist"); |
|
|
|
mainPage |
|
|
|
mainPage |
|
|
|
.getCell(`Address`, 2) |
|
|
|
.getCell(`Address`, 2) |
|
|
|
.contains("1121 Loja Avenue") |
|
|
|
.contains("1121 Loja Avenue") |
|
|
@ -35,8 +41,8 @@ export const genTest = (type, xcdb) => { |
|
|
|
mainPage.getCell(`ZipCode`, 2).contains("17886").should("exist"); |
|
|
|
mainPage.getCell(`ZipCode`, 2).contains("17886").should("exist"); |
|
|
|
|
|
|
|
|
|
|
|
// Column operations: Hide
|
|
|
|
// Column operations: Hide
|
|
|
|
mainPage.hideField("ZipCode"); |
|
|
|
mainPage.hideField(`ZipCode`); |
|
|
|
mainPage.unhideField("ZipCode"); |
|
|
|
mainPage.unhideField(`ZipCode`); |
|
|
|
|
|
|
|
|
|
|
|
// Column operations: Sort
|
|
|
|
// Column operations: Sort
|
|
|
|
mainPage.sortField("Name", "Z -> A"); |
|
|
|
mainPage.sortField("Name", "Z -> A"); |
|
|
@ -49,6 +55,7 @@ export const genTest = (type, xcdb) => { |
|
|
|
mainPage.filterReset(); |
|
|
|
mainPage.filterReset(); |
|
|
|
|
|
|
|
|
|
|
|
cy.closeViewsTab("CustomerList"); |
|
|
|
cy.closeViewsTab("CustomerList"); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it(`SQL View Column operations`, () => { |
|
|
|
it(`SQL View Column operations`, () => { |
|
|
|