mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 10:07:46 -05:00
feat: convert intro page test to playwright (#54620)
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
describe('Certification intro page', () => {
|
||||
it('Should render', () => {
|
||||
cy.visit('/learn/coding-interview-prep');
|
||||
cy.contains(
|
||||
"If you're looking for free coding exercises to prepare for your next job interview, we've got you covered."
|
||||
).should('be.visible');
|
||||
|
||||
cy.title().should('eq', 'Coding Interview Prep | freeCodeCamp.org');
|
||||
});
|
||||
});
|
||||
13
e2e/intro-page.spec.ts
Normal file
13
e2e/intro-page.spec.ts
Normal file
@@ -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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user