From e725dce83128a318be341af15a6441231589cd90 Mon Sep 17 00:00:00 2001 From: counterweight Date: Fri, 14 Feb 2025 15:07:29 +0100 Subject: [PATCH] actually check something --- tests/app.spec.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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'); });