Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit707c485

Browse files
committed
fix: fix test
1 parent15334f2 commit707c485

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎site/src/pages/TemplatesPage/TemplatesPage.test.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test("create template from scratch", async () => {
1717
element:<TemplatesPage/>,
1818
},
1919
{
20-
path:"/starter-templates",
20+
path:"/templates/new",
2121
element:<divdata-testid="new-template-page"/>,
2222
},
2323
],
@@ -34,6 +34,9 @@ test("create template from scratch", async () => {
3434
name:"Create Template",
3535
});
3636
awaituser.click(createTemplateButton);
37+
constfromScratchMenuItem=awaitscreen.findByText("From scratch");
38+
awaituser.click(fromScratchMenuItem);
3739
awaitscreen.findByTestId("new-template-page");
38-
expect(router.state.location.pathname).toBe("/starter-templates");
40+
expect(router.state.location.pathname).toBe("/templates/new");
41+
expect(router.state.location.search).toBe("?exampleId=scratch");
3942
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp