diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-07 00:41:40 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-07 10:42:25 +0200 |
| commit | 86e73feeb629835a2f07daa89a03a59d0ebf2359 (patch) | |
| tree | 79a8e2477fa292a375d88ffbe05e66d5afd87181 | |
| parent | f5c94dadc0bc0a84cb90e1c82e91070c224bce71 (diff) | |
| download | gohugo-theme-ed-86e73feeb629835a2f07daa89a03a59d0ebf2359.tar.gz | |
Amend E2E test
| -rw-r--r-- | tests/general.spec.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/general.spec.js b/tests/general.spec.js index e9d5a45..09d093f 100644 --- a/tests/general.spec.js +++ b/tests/general.spec.js @@ -8,12 +8,12 @@ test('has title', async ({ page }) => { await expect(page).toHaveTitle(/Ed./); }); -// test('get started link', async ({ page }) => { -// await page.goto('https://127.0.0.1:1313/'); +test('our documentation link', async ({ page }) => { + await page.goto('/'); -// // Click the get started link. -// await page.getByRole('link', { name: 'Get started' }).click(); + // Click the "our documentation" link. + await page.getByText('our documentation').click(); -// // Expects page to have a heading with the name of Installation. -// await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible(); -// }); + // Expects page to have a heading with the name of Documentation. + await expect(page.getByRole('heading', { name: 'Documentation' })).toBeVisible(); +}); |
