forked from freeCodeCamp/freeCodeCamp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: convert intro page test to playwright (freeCodeCamp#54620)
- Loading branch information
Showing
2 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
10 changes: 0 additions & 10 deletions
10
cypress/e2e/default/learn/coding-interview-prep/intro-page.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test.describe('Certification intro page', () => { | ||
test('Should render', async ({ page }) => { | ||
await page.goto('/learn/coding-interview-prep'); | ||
await expect( | ||
page.getByText( | ||
"If you're looking for free coding exercises to prepare for your next job interview, we've got you covered." | ||
) | ||
).toBeVisible(); | ||
await expect(page).toHaveTitle('Coding Interview Prep | freeCodeCamp.org'); | ||
}); | ||
}); |