Skip to content

Commit

Permalink
rewrap comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gabalafou committed Aug 1, 2023
1 parent 8b861c6 commit 135353f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ async function nextFocusNode(page: Page) {
}

/**
* Generator function to iterate through the tab-focussable nodes on the page
* in tab-focus order.
* Generator function to iterate through the tab-focussable nodes on the page in
* tab-focus order.
*
* Note: when the function yields a node, that node currently has the browser
* focus.
Expand Down Expand Up @@ -122,10 +122,10 @@ test.describe("every tab-focusable element on initial app page", () => {
// that fails the test.
expect
.soft(
// Buffer.equals uses bit-for-bit equality, equivalent to comparing both
// screenshots pixel for pixel. If the screenshots are exactly the same,
// we know for sure that there was no visible focus indicator, so the test
// fails.
// Buffer.equals uses bit-for-bit equality, equivalent to comparing
// both screenshots pixel for pixel. If the screenshots are exactly
// the same, we know for sure that there was no visible focus
// indicator, so the test fails.
focus.equals(noFocus),
`focus visible comparison failed on\n\t${node.toString()}`,
)
Expand Down

0 comments on commit 135353f

Please sign in to comment.