We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent15334f2 commit707c485Copy full SHA for 707c485
site/src/pages/TemplatesPage/TemplatesPage.test.tsx
@@ -17,7 +17,7 @@ test("create template from scratch", async () => {
17
element:<TemplatesPage/>,
18
},
19
{
20
-path:"/starter-templates",
+path:"/templates/new",
21
element:<divdata-testid="new-template-page"/>,
22
23
],
@@ -34,6 +34,9 @@ test("create template from scratch", async () => {
34
name:"Create Template",
35
});
36
awaituser.click(createTemplateButton);
37
+constfromScratchMenuItem=awaitscreen.findByText("From scratch");
38
+awaituser.click(fromScratchMenuItem);
39
awaitscreen.findByTestId("new-template-page");
-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");
42