Asher Oloo
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
content/docs/testing-recipes.md
|
|
@ -393,7 +393,7 @@ it("changes value when clicked", () => { |
|
|
|
render(<Toggle onChange={onChange} />, container); |
|
|
|
}); |
|
|
|
|
|
|
|
// get ahold of the button element, and trigger some clicks on it |
|
|
|
// get a hold of the button element, and trigger some clicks on it |
|
|
|
const button = document.querySelector("[data-testid=toggle]"); |
|
|
|
expect(button.innerHTML).toBe("Turn on"); |
|
|
|
|
|
|
|