mirror of
https://github.com/BreizhHardware/portfolio.git
synced 2026-01-18 16:37:22 +01:00
Fix unit test
This commit is contained in:
2
.github/workflows/deploy-test.yml
vendored
2
.github/workflows/deploy-test.yml
vendored
@@ -7,7 +7,7 @@ on:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
build-test:
|
||||
runs-on: ubuntu-latest
|
||||
environment: production
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
// cypress/integration/app_spec.js
|
||||
describe('App Component', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/');
|
||||
});
|
||||
|
||||
it('renders the app and checks if CSS is loaded', () => {
|
||||
cy.get('[data-testid="root"]').should('exist');
|
||||
cy.get('[data-testid="root"]', { timeout: 10000 }).should('exist');
|
||||
cy.get('[data-testid="root"]').should('have.class', 'min-h-screen py-10 px-3 sm:px-5 bg-gray-100 dark:bg-gray-900');
|
||||
});
|
||||
});
|
||||
@@ -39,7 +39,7 @@ function App() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="min-h-screen py-10 px-3 sm:px-5 bg-gray-100 dark:bg-gray-900">
|
||||
<div className="min-h-screen py-10 px-3 sm:px-5 bg-gray-100 dark:bg-gray-900" data-testid="root">
|
||||
<Menu />
|
||||
<div data-aos="face-down" data-aos-duration="800" id="top">
|
||||
<Card name={data.name} title={data.title} social={data.social} />
|
||||
|
||||
Reference in New Issue
Block a user