Skip to content

Commit

Permalink
fix(test): change alert query in basic css test (freeCodeCamp#55530)
Browse files Browse the repository at this point in the history
  • Loading branch information
a2937 authored Jul 22, 2024
1 parent fd08605 commit f2e7815
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions e2e/basic-css.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f2e7815

Please sign in to comment.