-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opentierboy-89 [FEATURE] Implement automated testing
- Add About test - Fix About layout for small screen
- Loading branch information
1 parent
13ac0ec
commit a5d9d39
Showing
2 changed files
with
18 additions
and
1 deletion.
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
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,17 @@ | ||
import {test, expect} from '@playwright/test'; | ||
|
||
test('it should be able to visit about page', async ({page}) => { | ||
await page.goto('/'); | ||
await page.getByRole('navigation').getByRole("link", {name: "About"}).click(); | ||
await expect(page.locator("main")).toBeVisible(); | ||
|
||
const h3CommunityDrivenOpenSource = page.getByRole("heading", {name: "Community Driven & Open-Source"}) | ||
const h3AdFreeExperience = page.getByRole("heading", {name: "Ad-Free Experience"}) | ||
const h3EasySharing = page.getByRole("heading", {name: "Easy Sharing"}) | ||
const h3Customizable = page.getByRole("heading", {name: "Customizable"}) | ||
|
||
await expect(h3CommunityDrivenOpenSource).toBeVisible(); | ||
await expect(h3AdFreeExperience).toBeVisible(); | ||
await expect(h3EasySharing).toBeVisible(); | ||
await expect(h3Customizable).toBeVisible(); | ||
}); |