mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-06-19 20:38:31 -06:00
PR-421183: Adding Cypress and updating packages.
This commit is contained in:
20
cypress/e2e/App.test.ts
Normal file
20
cypress/e2e/App.test.ts
Normal file
@ -0,0 +1,20 @@
|
||||
describe('Initial Component Tests', () => {
|
||||
it('Will show the Initial Component page.', () => {
|
||||
cy.visit('/');
|
||||
cy.get('a').contains('Other Component');
|
||||
});
|
||||
it('Will Redirect to Other Component page.', () => {
|
||||
cy.visit('/');
|
||||
cy.get('a').contains('Other Component').click();
|
||||
cy.get('a').contains('Initial Component');
|
||||
});
|
||||
it('Will show the Other Component page.', () => {
|
||||
cy.visit('/other-component');
|
||||
cy.get('a').contains('Initial Component');
|
||||
});
|
||||
it('Will Redirect to Initial Component page.', () => {
|
||||
cy.visit('/other-component');
|
||||
cy.get('a').contains('Initial Component').click();
|
||||
cy.get('a').contains('Other Component');
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user