Skip to content

Commit

Permalink
Add browser-back test to e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
surchs committed Dec 1, 2023
1 parent 3f028d7 commit f0f4af2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cypress/e2e/app/simple-e2etest.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ describe("End to end test using a simple UI path through the app", () => {
// E. Click the next page button to proceed to the categorization page
cy.get("[data-cy='button-nextpage']").click();


if ( cy.datasetMeetsTestCriteria("categorization", p_dataset, testCriteria) ) {

// 2. Go through categorization page, categorizing subject ID and age columns in the table
Expand Down Expand Up @@ -86,9 +85,17 @@ describe("End to end test using a simple UI path through the app", () => {
// annotation page is no accessible.
cy.assertNextPageAccess("annotation", true);

// E. Click the next page button to proceed to the categorization page
// E. Click the next page button to proceed to the annotation page
cy.get("[data-cy='button-nextpage']").click();

// Make sure that we can go back with the browser back button and the
// app state also updates accordingly
cy.get("[data-cy='button-nextpage']").contains('Review and download');
cy.go('back');
cy.get("[data-cy='button-nextpage']").contains('Annotate columns');
cy.go('forward');
cy.get("[data-cy='button-nextpage']").contains('Review and download');


if ( cy.datasetMeetsTestCriteria("annotation", p_dataset, testCriteria)) {

Expand Down

0 comments on commit f0f4af2

Please sign in to comment.