Skip to content

Commit

Permalink
✅ Ongoing writing test
Browse files Browse the repository at this point in the history
  • Loading branch information
dohyun-ko committed Sep 4, 2024
1 parent cc59887 commit 3c45005
Show file tree
Hide file tree
Showing 15 changed files with 32,825 additions and 17,841 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ next-env.d.ts
/playwright-report/
/blob-report/
/playwright/.cache/
playwright/.auth
18 changes: 18 additions & 0 deletions e2e/example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Playwright/);
});

test('get started link', async ({ page }) => {
await page.goto('https://playwright.dev/');

// 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();
});
Loading

0 comments on commit 3c45005

Please sign in to comment.