Skip to content

Commit

Permalink
feat: convert intro page test to playwright (freeCodeCamp#54620)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sembauke authored May 3, 2024
1 parent c17587f commit 5ad1bfc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cypress/e2e/default/learn/coding-interview-prep/intro-page.ts

This file was deleted.

13 changes: 13 additions & 0 deletions e2e/intro-page.spec.ts
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');
});
});

0 comments on commit 5ad1bfc

Please sign in to comment.