mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
test(e2e): header should always be visible (sticky)
This commit is contained in:
parent
a467ea7aff
commit
a2da9618af
@ -15,19 +15,11 @@ export const Interests: React.FC = () => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
|
||||||
<div className='max-w-full'>
|
<div className='max-w-full'>
|
||||||
{paragraphs.map((paragraph, index) => {
|
{paragraphs.map((paragraph, index) => {
|
||||||
return <InterestParagraph key={index} {...paragraph} />
|
return <InterestParagraph key={index} {...paragraph} />
|
||||||
})}
|
})}
|
||||||
<InterestsList />
|
<InterestsList />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style jsx global>{`
|
|
||||||
#__next {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
`}</style>
|
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ export const ProfileDescriptionBottom: React.FC = () => {
|
|||||||
href='/curriculum-vitae.html'
|
href='/curriculum-vitae.html'
|
||||||
className='text-yellow hover:underline dark:text-yellow-dark'
|
className='text-yellow hover:underline dark:text-yellow-dark'
|
||||||
>
|
>
|
||||||
Mon Curriculum vitæ
|
Curriculum vitæ
|
||||||
</a>
|
</a>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
@ -8,6 +8,10 @@ describe('Common > Header', () => {
|
|||||||
.should('eq', '/blog')
|
.should('eq', '/blog')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('should always be visible (sticky header)', () => {
|
||||||
|
cy.scrollTo('bottom').get('header').should('be.visible')
|
||||||
|
})
|
||||||
|
|
||||||
describe('Switch theme color (dark/light)', () => {
|
describe('Switch theme color (dark/light)', () => {
|
||||||
it('should switch theme from `dark` (default) to `light`', () => {
|
it('should switch theme from `dark` (default) to `light`', () => {
|
||||||
cy.get('[data-cy=switch-theme-dark]').should('be.visible')
|
cy.get('[data-cy=switch-theme-dark]').should('be.visible')
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
title: '🧼 Clean Code'
|
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.'
|
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
|
isPublished: true
|
||||||
publishedOn: '2021-11-06T22:06:33.818Z'
|
publishedOn: '2022-02-23T08:00:18.758Z'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hello! 👋
|
Hello! 👋
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
title: '👋 Hello, world!'
|
title: '👋 Hello, world!'
|
||||||
description: 'First post of the blog, introduction and explanation of how this blog is made.'
|
description: 'First post of the blog, introduction and explanation of how this blog is made.'
|
||||||
isPublished: true
|
isPublished: true
|
||||||
publishedOn: '2021-10-06T22:06:33.818Z'
|
publishedOn: '2022-02-20T08:00:18.758Z'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hello, world! 👋
|
Hello, world! 👋
|
||||||
|
@ -2,10 +2,6 @@
|
|||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
#__next {
|
|
||||||
@apply flex h-screen flex-col;
|
|
||||||
}
|
|
||||||
|
|
||||||
.prose {
|
.prose {
|
||||||
@apply !max-w-4xl text-gray dark:text-gray-300;
|
@apply !max-w-4xl text-gray dark:text-gray-300;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user