|
|
|
@ -3,7 +3,7 @@ import { render, screen } from '@testing-library/react'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
describe('Index', () => {
|
|
|
|
describe('Index', () => {
|
|
|
|
it('should show win content if the code is valide', () => {
|
|
|
|
it('should show win content if the ticket code is valid', () => {
|
|
|
|
const button = screen.getByRole('button', {
|
|
|
|
const button = screen.getByRole('button', {
|
|
|
|
name: /Découvrir mon cadeau \.js!/i,
|
|
|
|
name: /Découvrir mon cadeau \.js!/i,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|