From 55ce33aa6a2c0e2fc6c5e724c69bf74464799590 Mon Sep 17 00:00:00 2001 From: Dan Orlando Date: Mon, 26 Feb 2024 13:19:20 -0700 Subject: [PATCH] Fix landing spec --- e2e/specs/landing.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/specs/landing.spec.ts b/e2e/specs/landing.spec.ts index 86421cb6f1..557b951266 100644 --- a/e2e/specs/landing.spec.ts +++ b/e2e/specs/landing.spec.ts @@ -3,8 +3,8 @@ import { expect, test } from '@playwright/test'; test.describe('Landing suite', () => { test('Landing title', async ({ page }) => { await page.goto('http://localhost:3080/', { timeout: 5000 }); - const pageTitle = await page.textContent('#landing-title'); - expect(pageTitle?.length).toBeGreaterThan(0); + const pageTitle = page.getByText('How can I help you today?'); + expect(pageTitle).toBeTruthy(); }); test('Create Conversation', async ({ page }) => {