-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04ed043
commit 846640b
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { expect, test } from "@playwright/test"; | ||
|
||
test("homepage elements", async ({ page }) => { | ||
await page.goto("/"); | ||
await expect(page.getByRole("heading")).toContainText( | ||
"The Next Generation Repository Solution", | ||
); | ||
await expect(page.getByRole("main")).toContainText( | ||
"Hyku is a digital repository that provides a robust and flexible platform for institutions to manage, preserve, and provide access to digital content.", | ||
); | ||
|
||
await page.getByRole("link", { name: "Get started" }).click(); | ||
|
||
await expect(page.locator("h1")).toContainText("Getting Started"); | ||
|
||
await page.goto("/"); | ||
|
||
await expect(page.getByRole("main")).toContainText("Documentation →"); | ||
await expect(page.getByRole("img", { name: "App screenshot" })).toBeVisible(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters