Skip to content

Commit

Permalink
👨‍⚕️ Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kento committed Apr 30, 2023
1 parent 27e569c commit f7228ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/home.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import Home from "../pages"
describe("Home", () => {
it("Rendering Page Title", () => {
render(<Home />)
expect(screen.getByRole("heading")).toHaveTextContent("My Forms")
expect(screen.getByTestId("site-title")).toHaveTextContent("My Forms")
})
})
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Home: NextPage = () => (

<main className={styles.main}>
<section className={styles.section}>
<h2 className={styles.h2}>My Forms</h2>
<h2 className={styles.h2} data-testid="site-title">My Forms</h2>

<p>ダミーのフォームを作成し、沢山並べているサイトです。</p>
</section>
Expand Down

0 comments on commit f7228ca

Please sign in to comment.