Skip to content

Commit

Permalink
Add label to unordered list
Browse files Browse the repository at this point in the history
  • Loading branch information
wlsf82 committed Jan 17, 2024
1 parent 95fd748 commit fa0a4cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ <h2>
<p>To deal with that, Cypress offers the <code>.should('have.length')</code> assertion.</p>
<p>Here's how it works: <code>cy.get('ul li').should('have.length', 5)</code>.</p>
<p>This way, you can count how many elements were found for that specific selector, and assert against the number you expect them to be.</p>
<ul>
<label for="animals">Animals</label>
<ul id="animals">
<li>Camel</li>
<li>Cat</li>
<li>Caterpilla</li>
Expand Down

0 comments on commit fa0a4cc

Please sign in to comment.