diff --git a/tests/app.spec.js b/tests/app.spec.js index fae9b66..9fdadf6 100644 --- a/tests/app.spec.js +++ b/tests/app.spec.js @@ -1,6 +1,8 @@ const { test, expect } = require('@playwright/test'); -test('Home page has correct title', async () => { - const isTrue = true; - expect(isTrue).toBe(true); +test('Home page has correct title', async ({ page }) => { + await page.goto('http://localhost/'); + const title = await page.title(); + + expect(title).toBe('Hello World'); });