Playwright setup

This commit is contained in:
Daniel D Orlando 2023-03-27 17:00:59 -07:00 committed by Daniel D Orlando
parent 6f30b6ec9d
commit bd94c4233d
7 changed files with 297 additions and 2 deletions

View file

@ -0,0 +1,7 @@
import {expect, test} from '@playwright/test';
test('landing page', async ({page}) => {
await page.goto('/');
expect (await page.title()).toBe('ChatGPT Clone');
expect (await page.textContent('h1')).toBe('ChatGPT Clone');
});