diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 137a6ea80..6394054fb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,9 @@ { "image": "mcr.microsoft.com/devcontainers/universal", "features": { - "ghcr.io/devcontainers/features/node:1": {} + "ghcr.io/devcontainers/features/node:1": { + "version": "20" + } }, "customizations": { "vscode": { diff --git a/instances/events-committee.near/widget/app.jsx b/instances/events-committee.near/widget/app.jsx index 4953a3d1e..e8969533e 100644 --- a/instances/events-committee.near/widget/app.jsx +++ b/instances/events-committee.near/widget/app.jsx @@ -23,7 +23,7 @@ if (!AppLayout || !Theme || !CssContainer) { if (!page) { // If no page is specified, we default to the feed page TEMP - page = "home"; + page = "proposals"; } // This is our navigation, rendering the page based on the page parameter @@ -38,7 +38,6 @@ function Page() { /> ); } - case "proposals": { return ( { }); test.skip("should write a first test", async ({ page }) => {}); }); + +test("Default page should be proposals", async ({ page }) => { + await page.goto(`/events-committee.near/widget/app`); + await expect( + await page.locator("button", { hasText: "Submit Proposal" }) + ).toBeVisible(); +});