mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-06-19 20:38:31 -06:00
PR-589725: Updating packages, fixing redux actions and fixing linting.
This commit is contained in:
@ -1,20 +1,20 @@
|
||||
describe('Initial Component Tests', () => {
|
||||
it('Will show the Initial Component page.', () => {
|
||||
cy.visit('/');
|
||||
cy.get('a').contains('Other Component');
|
||||
cy.get('a').contains('Other Component');
|
||||
});
|
||||
it('Will Redirect to Other Component page.', () => {
|
||||
it('Will Redirect to Other Component page.', () => {
|
||||
cy.visit('/');
|
||||
cy.get('a').contains('Other Component').click();
|
||||
cy.get('a').contains('Initial Component');
|
||||
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');
|
||||
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('Initial Component').click();
|
||||
cy.get('a').contains('Other Component');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -34,4 +34,4 @@
|
||||
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
@ -22,7 +22,7 @@ import './commands';
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
|
||||
import { mount } from '@cypress/react'
|
||||
import { mount } from '@cypress/react';
|
||||
|
||||
// Augment the Cypress namespace to include type definitions for
|
||||
// your custom command.
|
||||
|
Reference in New Issue
Block a user