mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-06-19 12:28:37 -06:00
PR-579798: Adding Component cypress testing.
This commit is contained in:
16
src/frontend/components/__tests__/App.test.cy.tsx
Normal file
16
src/frontend/components/__tests__/App.test.cy.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import React from 'react';
|
||||
import { ProviderMock } from '@mocks';
|
||||
import App from '@components/App';
|
||||
|
||||
describe('Testing Card Component', () => {
|
||||
beforeEach(() => {
|
||||
cy.mount(
|
||||
<ProviderMock>
|
||||
<App />
|
||||
</ProviderMock>
|
||||
);
|
||||
});
|
||||
it('Show Text', () => {
|
||||
cy.get('p').contains('Edit src/frontend/InitialComponent.jsx and save to reload.');
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user