Skip to content

Commit 2c22e32

Browse files
testing out playwright
1 parent 9ef17a3 commit 2c22e32

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

e2e/homePageExampleTest.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,13 @@ test('HomePage Example Test', async ({ page }) => {
55
await page.goto('https://operationcode.org/');
66
await expect(page).toHaveTitle('Operation Code | Home');
77
});
8+
9+
test('get started link', async ({ page }) => {
10+
await page.goto('https://operationcode.org/');
11+
12+
// Click the get started link.
13+
await page.getByRole('link', { name: 'learn more' }).click();
14+
15+
// Expects page to have a heading with the name of Installation.
16+
await expect(page.getByRole('heading', { name: 'about us' })).toBeVisible();
17+
});

0 commit comments

Comments
 (0)