diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-07 00:25:15 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-07 10:42:25 +0200 |
| commit | 9dae69ef3282aa7c3ebd5243b77199108ad595f9 (patch) | |
| tree | 4e18585fe3b95e6603c34287efeb00fd237be98f /tests/general.spec.js | |
| parent | 34f9e78c69183627a82e03e32563d15b73a33782 (diff) | |
| download | gohugo-theme-ed-9dae69ef3282aa7c3ebd5243b77199108ad595f9.tar.gz | |
Add support of E2E tests using Playwright
Diffstat (limited to 'tests/general.spec.js')
| -rw-r--r-- | tests/general.spec.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/general.spec.js b/tests/general.spec.js new file mode 100644 index 0000000..e9d5a45 --- /dev/null +++ b/tests/general.spec.js @@ -0,0 +1,19 @@ +// @ts-check +const { test, expect } = require('@playwright/test'); + +test('has title', async ({ page }) => { + await page.goto('/'); + + // Expect a title "to contain" a substring. + await expect(page).toHaveTitle(/Ed./); +}); + +// test('get started link', async ({ page }) => { +// await page.goto('https://127.0.0.1:1313/'); + +// // Click the get started link. +// await page.getByRole('link', { name: 'Get started' }).click(); + +// // Expects page to have a heading with the name of Installation. +// await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible(); +// }); |
