1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-09-09 17:45:53 +02:00

test(e2e): header should always be visible (sticky)

This commit is contained in:
Divlo 2022-02-23 09:03:10 +01:00
parent a467ea7aff
commit a2da9618af
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9
6 changed files with 13 additions and 21 deletions

View File

@ -15,19 +15,11 @@ export const Interests: React.FC = () => {
)
return (
<>
<div className='max-w-full'>
{paragraphs.map((paragraph, index) => {
return <InterestParagraph key={index} {...paragraph} />
})}
<InterestsList />
</div>
<style jsx global>{`
#__next {
display: block;
}
`}</style>
</>
<div className='max-w-full'>
{paragraphs.map((paragraph, index) => {
return <InterestParagraph key={index} {...paragraph} />
})}
<InterestsList />
</div>
)
}

View File

@ -14,7 +14,7 @@ export const ProfileDescriptionBottom: React.FC = () => {
href='/curriculum-vitae.html'
className='text-yellow hover:underline dark:text-yellow-dark'
>
Mon Curriculum vitæ
Curriculum vitæ
</a>
</>
)}

View File

@ -8,6 +8,10 @@ describe('Common > Header', () => {
.should('eq', '/blog')
})
it('should always be visible (sticky header)', () => {
cy.scrollTo('bottom').get('header').should('be.visible')
})
describe('Switch theme color (dark/light)', () => {
it('should switch theme from `dark` (default) to `light`', () => {
cy.get('[data-cy=switch-theme-dark]').should('be.visible')

View File

@ -2,7 +2,7 @@
title: '🧼 Clean Code'
description: 'What is "Clean Code", what are "Design Patterns", and why is it so important today ? Tips and tricks to make your code more readable and maintainable in the long term.'
isPublished: true
publishedOn: '2021-11-06T22:06:33.818Z'
publishedOn: '2022-02-23T08:00:18.758Z'
---
Hello! 👋

View File

@ -2,7 +2,7 @@
title: '👋 Hello, world!'
description: 'First post of the blog, introduction and explanation of how this blog is made.'
isPublished: true
publishedOn: '2021-10-06T22:06:33.818Z'
publishedOn: '2022-02-20T08:00:18.758Z'
---
Hello, world! 👋

View File

@ -2,10 +2,6 @@
@tailwind components;
@tailwind utilities;
#__next {
@apply flex h-screen flex-col;
}
.prose {
@apply !max-w-4xl text-gray dark:text-gray-300;
}