Files
radicle-explorer/tests/e2e/landingPage.spec.ts
T
Rūdolfs Ošiņšandxphoniex 26f96990a4 Extract fixture specific variables
Co-authored-by: xphoniex <dj.2dixx@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-28 12:23:28 +01:00

32 lines
746 B
TypeScript

import {
aliceMainHead,
appConfigWithFixture,
expect,
test,
} from "@tests/support/fixtures.js";
test.use({
customAppConfig: true,
});
test("show pinned projects", async ({ page }) => {
await page.addInitScript(appConfigWithFixture);
await page.goto("/");
await expect(
page.locator("text=Explore projects on the Radicle network."),
).toBeVisible();
// Shows pinned project name.
await expect(page.locator("text=source-browsing")).toBeVisible();
//
// Shows pinned project description.
await expect(
page.locator("text=Git repository for source browsing tests"),
).toBeVisible();
// Shows latest commit.
await expect(
page.locator(`text=${aliceMainHead.substring(0, 7)}`),
).toBeVisible();
});