Issue 3453, organized the test suite (#3456)
* Moved and renamed Cypress tests, created folders skeleton * Updated syntax for assertions in sorting test * Added test folders * fix: cache all UI paths for cypress (#3454) * fix: cache all UI paths for cypress * Update pull_request.yml * chore: restore caching in pr workflow (#3457) Signed-off-by: Kush Trivedi <kushthedude@gmail.com> Co-authored-by: Kush Trivedi <44091822+kushthedude@users.noreply.github.com>
This commit is contained in:
parent
3d021cd434
commit
e2361fee56
@ -8,8 +8,8 @@ describe(__filename, function () {
|
||||
cy.confirmDialogPanel();
|
||||
|
||||
// ensure sorting is active
|
||||
cy.getCell(0, 'Shrt_Desc').contains('BUTTER,WHIPPED,WITH SALT');
|
||||
cy.getCell(1, 'Shrt_Desc').contains('BUTTER,WITH SALT');
|
||||
cy.getCell(0, 'Shrt_Desc').should('to.contain', 'BUTTER,WHIPPED,WITH SALT')
|
||||
cy.getCell(1, 'Shrt_Desc').should('to.contain', 'BUTTER,WITH SALT');
|
||||
});
|
||||
|
||||
it('Perform a basic sort + Reverse', function () {
|
||||
@ -21,15 +21,15 @@ describe(__filename, function () {
|
||||
cy.confirmDialogPanel();
|
||||
|
||||
// check the sorting
|
||||
cy.getCell(0, 'Shrt_Desc').contains('BUTTER,WHIPPED,WITH SALT');
|
||||
cy.getCell(1, 'Shrt_Desc').contains('BUTTER,WITH SALT');
|
||||
cy.getCell(0, 'Shrt_Desc').should('to.contain', 'BUTTER,WHIPPED,WITH SALT');
|
||||
cy.getCell(1, 'Shrt_Desc').should('to.contain', 'BUTTER,WITH SALT');
|
||||
|
||||
// do a reverse sort
|
||||
cy.columnActionClick('Shrt_Desc', ['Sort', 'Reverse']);
|
||||
|
||||
// re-check the sorting
|
||||
cy.getCell(0, 'Shrt_Desc').contains('BUTTER,WITH SALT');
|
||||
cy.getCell(1, 'Shrt_Desc').contains('BUTTER,WHIPPED,WITH SALT');
|
||||
cy.getCell(0, 'Shrt_Desc').should('to.contain', 'BUTTER,WITH SALT');
|
||||
cy.getCell(1, 'Shrt_Desc').should('to.contain', 'BUTTER,WHIPPED,WITH SALT');
|
||||
});
|
||||
|
||||
it('Perform a basic sort + Remove Sort', function () {
|
||||
@ -41,14 +41,14 @@ describe(__filename, function () {
|
||||
cy.confirmDialogPanel();
|
||||
|
||||
// check the sorting
|
||||
cy.getCell(0, 'Shrt_Desc').contains('BUTTER,WHIPPED,WITH SALT');
|
||||
cy.getCell(1, 'Shrt_Desc').contains('BUTTER,WITH SALT');
|
||||
cy.getCell(0, 'Shrt_Desc').should('to.contain', 'BUTTER,WHIPPED,WITH SALT');
|
||||
cy.getCell(1, 'Shrt_Desc').should('to.contain', 'BUTTER,WITH SALT');
|
||||
|
||||
// remove
|
||||
cy.columnActionClick('Shrt_Desc', ['Sort', 'Remove sort']);
|
||||
|
||||
// re-check the sorting
|
||||
cy.getCell(0, 'Shrt_Desc').contains('BUTTER,WITH SALT');
|
||||
cy.getCell(1, 'Shrt_Desc').contains('BUTTER,WHIPPED,WITH SALT');
|
||||
cy.getCell(0, 'Shrt_Desc').should('to.contain', 'BUTTER,WITH SALT');
|
||||
cy.getCell(1, 'Shrt_Desc').should('to.contain', 'BUTTER,WHIPPED,WITH SALT');
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user