Revert "feat: migrate /apps/routing-forms/forms to /routing (#18001)"
This reverts commit 1de007ad21.
This commit is contained in:
1 parent
187a2c576e
commit
9c127cbfc2
10 files changed
+7
-223
No files matched your search
@@ -55,10 +55,6 @@ export async function getServerSideProps(
|
||||
context: GetServerSidePropsContext,
|
||||
...rest: GetServerSidePropsRestArgs
|
||||
) {
|
||||
//add forms to be the default page, if no pages are found
|
||||
//this is useful when rendering /routing as no params would be available
|
||||
const defaultPage = "forms";
|
||||
const page = context.params?.pages?.[0] || defaultPage;
|
||||
const component = getComponent(page);
|
||||
const component = getComponent(context.params?.pages?.[0] || "");
|
||||
return component.getServerSideProps?.(context, ...rest) || { props: {} };
|
||||
}
|
||||
@@ -84,7 +84,7 @@ test.describe("Routing Forms", () => {
|
||||
test("should be able to add a new form and view it", async ({ page }) => {
|
||||
const formId = await addForm(page);
|
||||
|
||||
await page.click('[href="/routing"]');
|
||||
await page.click('[href*="/forms"]');
|
||||
|
||||
await page.waitForSelector('[data-testid="routing-forms-list"]');
|
||||
// Ensure that it's visible in forms list
|
||||
|
||||
Reference in new issue
Block a user