generated from gsoc2/open-sauced
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.spec.ts
16 lines (13 loc) · 1.04 KB
/
feed.spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { test, expect } from "@playwright/test";
test("Loads feed page (logged out user)", async ({ page }) => {
await page.goto("/feed");
await expect(page.getByRole("link", { name: "OpenSauced", exact: true })).toBeVisible();
await expect(page.getByRole("link", { name: "Explore", exact: true })).toBeVisible();
await expect(page.getByRole("link", { name: "Highlights", exact: true })).toBeVisible();
await expect(page.getByRole("button", { name: "Connect with GitHub", exact: true })).toBeVisible();
await expect(page.getByRole("complementary", { name: "Top Contributors", exact: true })).toBeVisible();
await expect(page.getByRole("complementary", { name: "Repositories", exact: true })).toBeVisible();
await expect(page.getByRole("complementary", { name: "Featured Highlights", exact: true })).toBeVisible();
await expect(page.getByRole("complementary", { name: "Subscribe to our newsletter", exact: true })).toBeVisible();
await expect(page.getByRole("complementary", { name: "Introducing StarSearch!", exact: true })).toBeVisible();
});