fix(test): change alert query in basic css test (#55530)

This commit is contained in:
Anna
2024-07-22 10:18:13 -04:00
committed by GitHub
parent fd08605134
commit f2e78151b8
+1 -3
View File
@@ -58,9 +58,7 @@ test.describe('Responsive Web Design Projects - Basic CSS', () => {
test('renders', async ({ page }) => {
await page.goto(locations.index);
await expect(page.locator('.alert.alert-info')).toContainText(
warningMessage
);
await expect(page.getByText(warningMessage)).toBeVisible();
for (const lessonName of lessonNames) {
await expect(