Files
radicle-explorer/tests/e2e/landingPage.spec.ts
T
Sebastian Martinez 192524fe90 Add experimental switch in settings
Hide all read/write functionality behind this setting.
2024-03-07 10:35:21 +01:00

21 lines
637 B
TypeScript

import { appConfigWithFixture, expect, test } from "@tests/support/fixtures.js";
test.use({
customAppConfig: true,
});
test("show pinned projects", async ({ page }) => {
await page.addInitScript(() => localStorage.setItem("experimental", "true"));
await page.addInitScript(appConfigWithFixture);
await page.goto("/");
await expect(page.getByText("Local projects")).toBeVisible();
// Shows pinned project name.
await expect(page.getByText("source-browsing")).toBeVisible();
//
// Shows pinned project description.
await expect(
page.getByText("Git repository for source browsing tests"),
).toBeVisible();
});