Skip to content

Commit

Permalink
default page for events committee (#975)
Browse files Browse the repository at this point in the history
node v20 in devcontainer

Co-authored-by: Peter Salomonsen <[email protected]>
  • Loading branch information
Tguntenaar and petersalomonsen authored Oct 29, 2024
1 parent 223d0c8 commit dded2d9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 1 addition & 2 deletions instances/events-committee.near/widget/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -38,7 +38,6 @@ function Page() {
/>
);
}

case "proposals": {
return (
<Widget
Expand Down
7 changes: 7 additions & 0 deletions playwright-tests/tests/events/events.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ test.describe("Wallet is connected, but not KYC verified", () => {
});
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();
});

0 comments on commit dded2d9

Please sign in to comment.