mirror of
https://github.com/BreizhHardware/portfolio.git
synced 2026-03-18 21:40:29 +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
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: production
|
environment: production
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
|
// cypress/integration/app_spec.js
|
||||||
describe('App Component', () => {
|
describe('App Component', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.visit('/');
|
cy.visit('/');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders the app and checks if CSS is loaded', () => {
|
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');
|
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 (
|
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 />
|
<Menu />
|
||||||
<div data-aos="face-down" data-aos-duration="800" id="top">
|
<div data-aos="face-down" data-aos-duration="800" id="top">
|
||||||
<Card name={data.name} title={data.title} social={data.social} />
|
<Card name={data.name} title={data.title} social={data.social} />
|
||||||
|
|||||||
Reference in New Issue
Block a user