Skip to content
Prev Previous commit
Next Next commit
Merge branch 'master' into master
  • Loading branch information
taehwanno authored Jun 26, 2021
commit eee9c3002751ef8ec4d4cd811898addac2452db1
4 changes: 3 additions & 1 deletion content/docs/testing-recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,9 @@ it("changes value when clicked", () => {
render(<Toggle onChange={onChange} />, container);
});

// 버튼 엘리먼트에 클릭 이벤트를 트리거 하세요.
// 버튼 엘리먼트를 가져와서 클릭 이벤트를 트리거 하세요.


const button = document.querySelector("[data-testid=toggle]");
expect(button.innerHTML).toBe("Turn on");

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.