/* eslint-disable react/button-has-type */ import React from 'react' import { fireEvent, render, screen } from '@testing-library/react' import { Fog } from './Fog' describe('Fog', () => { it('should be able to click on an interactive element', () => { const onClick = jest.fn() render( , ) const button = screen.getByRole('button') fireEvent.click(button) expect(onClick).toHaveBeenCalled() }) it('should not be able to click on an interactive element', () => { const onClick = jest.fn() render( , ) expect(screen.queryByRole('button')).not.toBeInTheDocument() }) })