diff --git a/apps/portal-e2e/src/portal.spec.ts b/apps/portal-e2e/src/portal.spec.ts index 32dc6a1f..97197d61 100644 --- a/apps/portal-e2e/src/portal.spec.ts +++ b/apps/portal-e2e/src/portal.spec.ts @@ -54,7 +54,5 @@ lighthouseTest('should pass lighthouse audits', async ({ page, port }) => { test('has title', async ({ page }) => { await page.goto('/') - - // Expect h1 to contain a substring. - expect(await page.locator('h1').textContent()).toContain('Sponsorship') + await expect(page).toHaveTitle(/.*cuHacking/) })