jeanbauerc
I’m a twenty-one-years-old software developer focused on building web solutions for real life problems, most of the time using JavaScript.
The problem
<form class="form">
<label class="lbl" for="email">E-mail</label>
<input type="text" id="email" class="form-control" />
<form>
<form class="form">
<label class="lbl" for="email">E-mail</label>
<input type="text" id="email" class="form-control" />
<form>
🌱
<form class="form">
<label class="lbl" for="email">E-mail</label>
<input type="text" id="email" class="form-control" />
<form>
const emailLabel = screen.getByLabelText(/e-mail/i)
expect(emailLabel).toBeInTheDocument()
✅
Thanks.
By jeanbauerc
I’m a twenty-one-years-old software developer focused on building web solutions for real life problems, most of the time using JavaScript.