# Instructions - Following Playwright test failed. - Explain why, be concise, respect Playwright best practices. - Provide a snippet of code with the fix, if possible. # Test info - Name: e2e\settings.spec.ts >> admin can view settings page - Location: tests\e2e\settings.spec.ts:3:1 # Error details ``` Error: expect(locator).toBeVisible() failed Locator: locator('text=Settings') Expected: visible Timeout: 5000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 5000ms - waiting for locator('text=Settings') ``` ```yaml - main: - heading "404" [level=1] - paragraph: The requested page could not be found. ``` # Test source ```ts 1 | import { test, expect } from '@playwright/test'; 2 | 3 | test('admin can view settings page', async ({ page }) => { 4 | await page.goto('http://localhost:5173/settings'); > 5 | await expect(page.locator('text=Settings')).toBeVisible(); | ^ Error: expect(locator).toBeVisible() failed 6 | }); 7 | ```