Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 52296c3

Browse files
committed
Merge branch 'main' into staging
2 parents b4e4d64 + 67ed5ad commit 52296c3

33 files changed

+220
-100
lines changed

frontend/_tests_/Footer/index.test.jsx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
11
import React from 'react';
22
import { render, screen } from '@testing-library/react';
33
import Footer from '../../src/components/Footer/index';
4+
import NewFooter from '../../src/components/NewFooter/index';
45

56
describe('Footer', () => {
6-
it('Renders the icons', () => {
7+
it('Renders the social icons on the new Footer component', () => {
8+
console.log('lol testing');
9+
render(<NewFooter />);
10+
11+
const openSea = screen.getByLabelText('OpenSea');
12+
const twitter = screen.getByLabelText('Twitter');
13+
const discord = screen.getByLabelText('Discord');
14+
const github = screen.getByLabelText('GitHub');
15+
16+
expect(openSea).toBeInTheDocument();
17+
expect(twitter).toBeInTheDocument();
18+
expect(discord).toBeInTheDocument();
19+
expect(github).toBeInTheDocument();
20+
});
21+
22+
// TODO: deprecate the old Footer component, it is no longer used
23+
it('Renders the icons on the old Footer component', () => {
724
render(<Footer />);
825

926
const openSea = screen.getByTitle('OpenSea');
-1.12 KB
Binary file not shown.
7.75 KB
Loading
22 KB
Loading
-3.01 KB
Binary file not shown.
-3.06 KB
Binary file not shown.
-4.11 KB
Binary file not shown.
-4.61 KB
Binary file not shown.
-1.11 KB
Binary file not shown.
-1.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)