/* eslint-disable max-statements */
import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '@testing-library/react';
import { Icon } from './icon';
/* eslint-disable jsx-a11y/prefer-tag-over-role -- Valid on SVG */
describe('Icon', () => {
it('can render an icon with a heading', () => {
const heading = 'architecto';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('can render an icon with a description', () => {
const description = 'fuga voluptates eligendi';
render();
expect(rtlScreen.getByRole('img')).toHaveTextContent(description);
});
it('render an icon with bottom arrow shape', () => {
const heading = 'quae';
render(
);
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with left arrow shape', () => {
const heading = 'nemo';
render(
);
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with right arrow shape', () => {
const heading = 'odit';
render(
);
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with top arrow shape', () => {
const heading = 'ut';
render(
);
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with career shape', () => {
const heading = 'autem';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with cc-by-sa shape', () => {
const heading = 'blanditiis';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with cog shape', () => {
const heading = 'consequatur';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with computer shape', () => {
const heading = 'amet';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with cross shape', () => {
const heading = 'molestias';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with envelop shape', () => {
const heading = 'laudantium';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with feed shape', () => {
const heading = 'beatae';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with help shape', () => {
const heading = 'quidem';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with home shape', () => {
const heading = 'aut';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with magnifying glass shape', () => {
const heading = 'rerum';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with moon shape', () => {
const heading = 'saepe';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with posts stack shape', () => {
const heading = 'sunt';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with sun shape', () => {
const heading = 'aut';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with hamburger shape', () => {
const heading = 'sed';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with minus shape', () => {
const heading = 'sunt';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
it('render an icon with plus shape', () => {
const heading = 'maxime';
render();
expect(rtlScreen.getByRole('img', { name: heading })).toBeInTheDocument();
});
});