Skip to content

Commit

Permalink
docs: add description to verify text helper
Browse files Browse the repository at this point in the history
  • Loading branch information
readytotest committed Aug 10, 2024
1 parent bffd29d commit facd7f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@
<br>
Helper Function 1: <a href="https://github.com/readytotest/test-playwright/blob/main/scripts/verifyTextAndLink.ts" target="_blank" rel="noopener noreferrer">verifyTextAndLink.ts</a>
<br>
<sup>
Verifies an element's text content, visibility, and optionally its `href` attribute.
<br>
The visibility check defaults to true; pass false if you want to verify it's hidden.
<br>
This function uses ternary operators as an alternative to if statements.
</sup>
<br>
Helper Function 2: <a href="https://github.com/readytotest/test-playwright/blob/main/scripts/getHrefCopyToClipboard.ts" target="_blank" rel="noopener noreferrer">getHrefCopyToClipboard.ts</a>
<br>
Helper Function 3: <a href="https://github.com/readytotest/test-playwright/blob/main/scripts/readClipboardContent.ts" target="_blank" rel="noopener noreferrer">readClipboardContent.ts</a>
Expand Down

0 comments on commit facd7f6

Please sign in to comment.