|
|
@ -21,12 +21,18 @@ export const genTest = (apiType, dbType) => { |
|
|
|
|
|
|
|
|
|
|
|
// 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 |
|
|
|
mainPage |
|
|
|
.getCell(`Address`, 1) |
|
|
|
.getCell(`Address`, 1) |
|
|
|
.contains("1913 Hanoi Way") |
|
|
|
.contains("1913 Hanoi Way") |
|
|
|
.should("exist"); |
|
|
|
.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"); |
|
|
@ -38,7 +44,10 @@ export const genTest = (apiType, dbType) => { |
|
|
|
.getCell(`Address`, 2) |
|
|
|
.getCell(`Address`, 2) |
|
|
|
.contains("1121 Loja Avenue") |
|
|
|
.contains("1121 Loja Avenue") |
|
|
|
.should("exist"); |
|
|
|
.should("exist"); |
|
|
|
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`); |
|
|
@ -46,12 +55,18 @@ export const genTest = (apiType, dbType) => { |
|
|
|
|
|
|
|
|
|
|
|
// Column operations: Sort
|
|
|
|
// Column operations: Sort
|
|
|
|
mainPage.sortField("Name", "Z -> A"); |
|
|
|
mainPage.sortField("Name", "Z -> A"); |
|
|
|
mainPage.getCell(`Name`, 1).contains("ZACHARY HITE").should("exist"); |
|
|
|
mainPage |
|
|
|
|
|
|
|
.getCell(`Name`, 1) |
|
|
|
|
|
|
|
.contains("ZACHARY HITE") |
|
|
|
|
|
|
|
.should("exist"); |
|
|
|
mainPage.clearSort(); |
|
|
|
mainPage.clearSort(); |
|
|
|
|
|
|
|
|
|
|
|
// Column operations: Filter
|
|
|
|
// Column operations: Filter
|
|
|
|
mainPage.filterField("Name", "is like", "MARY"); |
|
|
|
mainPage.filterField("Name", "is like", "MARY"); |
|
|
|
mainPage.getCell(`Name`, 1).contains("MARY SMITH").should("exist"); |
|
|
|
mainPage |
|
|
|
|
|
|
|
.getCell(`Name`, 1) |
|
|
|
|
|
|
|
.contains("MARY SMITH") |
|
|
|
|
|
|
|
.should("exist"); |
|
|
|
mainPage.filterReset(); |
|
|
|
mainPage.filterReset(); |
|
|
|
|
|
|
|
|
|
|
|
cy.closeViewsTab("CustomerList"); |
|
|
|
cy.closeViewsTab("CustomerList"); |
|
|
@ -66,8 +81,14 @@ export const genTest = (apiType, dbType) => { |
|
|
|
|
|
|
|
|
|
|
|
// Record-1 validation
|
|
|
|
// Record-1 validation
|
|
|
|
mainPage.getCell(`ActorId`, 1).contains("1").should("exist"); |
|
|
|
mainPage.getCell(`ActorId`, 1).contains("1").should("exist"); |
|
|
|
mainPage.getCell(`FirstName`, 1).contains("PENELOPE").should("exist"); |
|
|
|
mainPage |
|
|
|
mainPage.getCell(`LastName`, 1).contains("GUINESS").should("exist"); |
|
|
|
.getCell(`FirstName`, 1) |
|
|
|
|
|
|
|
.contains("PENELOPE") |
|
|
|
|
|
|
|
.should("exist"); |
|
|
|
|
|
|
|
mainPage |
|
|
|
|
|
|
|
.getCell(`LastName`, 1) |
|
|
|
|
|
|
|
.contains("GUINESS") |
|
|
|
|
|
|
|
.should("exist"); |
|
|
|
mainPage |
|
|
|
mainPage |
|
|
|
.getCell(`FilmInfo`, 1) |
|
|
|
.getCell(`FilmInfo`, 1) |
|
|
|
.contains("Animation: ANACONDA CONFESSIONS;") |
|
|
|
.contains("Animation: ANACONDA CONFESSIONS;") |
|
|
@ -75,11 +96,19 @@ export const genTest = (apiType, dbType) => { |
|
|
|
|
|
|
|
|
|
|
|
// Record-2 validation
|
|
|
|
// Record-2 validation
|
|
|
|
mainPage.getCell(`ActorId`, 2).contains("2").should("exist"); |
|
|
|
mainPage.getCell(`ActorId`, 2).contains("2").should("exist"); |
|
|
|
mainPage.getCell(`FirstName`, 2).contains("NICK").should("exist"); |
|
|
|
mainPage |
|
|
|
mainPage.getCell(`LastName`, 2).contains("WAHLBERG").should("exist"); |
|
|
|
.getCell(`FirstName`, 2) |
|
|
|
|
|
|
|
.contains("NICK") |
|
|
|
|
|
|
|
.should("exist"); |
|
|
|
|
|
|
|
mainPage |
|
|
|
|
|
|
|
.getCell(`LastName`, 2) |
|
|
|
|
|
|
|
.contains("WAHLBERG") |
|
|
|
|
|
|
|
.should("exist"); |
|
|
|
mainPage |
|
|
|
mainPage |
|
|
|
.getCell(`FilmInfo`, 2) |
|
|
|
.getCell(`FilmInfo`, 2) |
|
|
|
.contains("Action: BULL SHAWSHANK; Animation: FIGHT JAWBREAKER;") |
|
|
|
.contains( |
|
|
|
|
|
|
|
"Action: BULL SHAWSHANK; Animation: FIGHT JAWBREAKER;" |
|
|
|
|
|
|
|
) |
|
|
|
.should("exist"); |
|
|
|
.should("exist"); |
|
|
|
|
|
|
|
|
|
|
|
// Column operations: Hide
|
|
|
|
// Column operations: Hide
|
|
|
@ -88,19 +117,25 @@ export const genTest = (apiType, dbType) => { |
|
|
|
|
|
|
|
|
|
|
|
// Column operations: Sort
|
|
|
|
// Column operations: Sort
|
|
|
|
mainPage.sortField("FirstName", "Z -> A"); |
|
|
|
mainPage.sortField("FirstName", "Z -> A"); |
|
|
|
mainPage.getCell(`FirstName`, 1).contains("ZERO").should("exist"); |
|
|
|
mainPage |
|
|
|
|
|
|
|
.getCell(`FirstName`, 1) |
|
|
|
|
|
|
|
.contains("ZERO") |
|
|
|
|
|
|
|
.should("exist"); |
|
|
|
mainPage.clearSort(); |
|
|
|
mainPage.clearSort(); |
|
|
|
|
|
|
|
|
|
|
|
// Column operations: Filter
|
|
|
|
// Column operations: Filter
|
|
|
|
mainPage.filterField("FirstName", "is like", "PENELOPE"); |
|
|
|
mainPage.filterField("FirstName", "is like", "PENELOPE"); |
|
|
|
mainPage.getCell(`FirstName`, 1).contains("PENELOPE").should("exist"); |
|
|
|
mainPage |
|
|
|
|
|
|
|
.getCell(`FirstName`, 1) |
|
|
|
|
|
|
|
.contains("PENELOPE") |
|
|
|
|
|
|
|
.should("exist"); |
|
|
|
mainPage.filterReset(); |
|
|
|
mainPage.filterReset(); |
|
|
|
|
|
|
|
|
|
|
|
cy.closeViewsTab("ActorInfo"); |
|
|
|
cy.closeViewsTab("ActorInfo"); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it(`SQL View List`, () => { |
|
|
|
it.skip(`SQL View List`, () => { |
|
|
|
// confirm if other views exist
|
|
|
|
// confirm if other views exist
|
|
|
|
//
|
|
|
|
//
|
|
|
|
cy.openViewsTab("CustomerList", 25); |
|
|
|
cy.openViewsTab("CustomerList", 25); |
|
|
|