Skip to content

Commit

Permalink
Migrate e2e test application cypress (#3897)
Browse files Browse the repository at this point in the history
  • Loading branch information
walmazacn committed Sep 10, 2024
1 parent 056edd9 commit 0d35789
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 176 deletions.
1 change: 1 addition & 0 deletions test/e2e-test-application/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ testem.log
Thumbs.db

cypress/downloads
cypress/e2e/videos

# config
/src/assets/devconfig.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ describe('JS-TEST-APP', () => {
});
});

afterEach(() => {
cy.visit('http://localhost:4500/', {
onBeforeLoad: win => {
win.localStorage.clear();
win.sessionStorage.clear();
}
});
});

it('Path routing, open modal and close via [x]', () => {
cy.vistTestAppPathRouting('', newConfig);
cy.get('#app[configversion="js-test-app-history-handling-modals-1"]');
Expand Down Expand Up @@ -200,6 +209,15 @@ describe('JS-TEST-APP', () => {
});
});

afterEach(() => {
cy.visit('http://localhost:4500/', {
onBeforeLoad: win => {
win.localStorage.clear();
win.sessionStorage.clear();
}
});
});

it('Hash routing, open modal and close via [X]', () => {
cy.visitTestApp('/', newConfig);
cy.get('#app[configversion="js-test-app-history-handling-modals-2"]');
Expand Down
Loading

0 comments on commit 0d35789

Please sign in to comment.