Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/__tests__/e2e/pages/About.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ test.describe('About Page', () => {
'Ansible',
'Docker',
'Jest',
'Next.js',
'PlayWright',
'PostgreSQL',
'Pytest',
'React',
'Tailwind CSS',
'Typescript',
]
Expand Down
34 changes: 17 additions & 17 deletions frontend/__tests__/unit/pages/About.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,29 @@ jest.mock('utils/aboutData', () => ({
section: 'Backend',
tools: {
Python: {
icon: 'devicon-python-plain',
icon: '/images/icons/python.svg',
url: 'https://www.python.org/',
},
},
},
{
section: 'Frontend',
tools: {
React: {
icon: 'devicon-react-original',
url: 'https://reactjs.org/',
'Next.js': {
icon: '/images/icons/nextjs.svg',
url: 'https://nextjs.org/',
},
},
},
{
section: 'Tests',
tools: {
Jest: {
icon: 'devicon-jest-plain',
icon: '/images/icons/jest.svg',
url: 'https://jestjs.io/',
},
Pytest: {
icon: 'devicon-pytest-plain',
icon: '/images/icons/pytest.svg',
url: 'https://docs.pytest.org/',
},
},
Expand All @@ -73,11 +73,11 @@ jest.mock('utils/aboutData', () => ({
section: 'Tools',
tools: {
Ansible: {
icon: 'devicon-ansible-plain',
icon: '/images/icons/ansible.svg',
url: 'https://www.ansible.com/',
},
GitHub: {
icon: 'devicon-github-original',
icon: '/images/icons/github.svg',
url: 'https://www.github.com/',
},
},
Expand Down Expand Up @@ -229,25 +229,25 @@ describe('About Component', () => {

expect(screen.getByText('Ansible')).toBeInTheDocument()
expect(screen.getByText('GitHub')).toBeInTheDocument()
expect(screen.getByText('React')).toBeInTheDocument()
expect(screen.getByText('Next.js')).toBeInTheDocument()

const ansibleLink = screen.getByText('Ansible').closest('a')
expect(ansibleLink).toHaveAttribute('href', 'https://www.ansible.com/')

const githubLink = screen.getByText('GitHub').closest('a')
expect(githubLink).toHaveAttribute('href', 'https://www.github.com/')

const reactLink = screen.getByText('React').closest('a')
expect(reactLink).toHaveAttribute('href', 'https://reactjs.org/')
const reactLink = screen.getByText('Next.js').closest('a')
expect(reactLink).toHaveAttribute('href', 'https://nextjs.org/')

const ansibleIcon = screen.getByText('Ansible').previousSibling
expect(ansibleIcon).toHaveClass('devicon-ansible-plain')
const ansibleIconContainer = screen.getByText('Ansible').previousSibling
expect(ansibleIconContainer).toBeInTheDocument()

const githubIcon = screen.getByText('GitHub').previousSibling
expect(githubIcon).toHaveClass('devicon-github-original')
const githubIconContainer = screen.getByText('GitHub').previousSibling
expect(githubIconContainer).toBeInTheDocument()

const reactIcon = screen.getByText('React').previousSibling
expect(reactIcon).toHaveClass('devicon-react-original')
const reactIconContainer = screen.getByText('Next.js').previousSibling
expect(reactIconContainer).toBeInTheDocument()
})

test('renders roadmap correctly', async () => {
Expand Down
1 change: 1 addition & 0 deletions frontend/public/images/icons/ansible.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/public/images/icons/django.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/public/images/icons/docker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/public/images/icons/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/public/images/icons/jest.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/public/images/icons/nextjs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/public/images/icons/playwright.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading