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:
Florian Giroud 2021-01-12 15:24:53 +01:00 committed by GitHub
parent 3d021cd434
commit e2361fee56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 10 additions and 10 deletions

View File

@ -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');
});
});