mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
18 lines
517 B
TypeScript
18 lines
517 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto(
|
|
'/learn/python-for-everybody/python-for-everybody/introduction-why-program'
|
|
);
|
|
});
|
|
|
|
test.describe('Challenge Video Player Component Tests', () => {
|
|
test('should render video player and play button', async ({ page }) => {
|
|
await expect(page.locator('.display-youtube-video')).toBeVisible();
|
|
|
|
await expect(
|
|
page.locator('iframe[title="YouTube video player"]')
|
|
).toBeVisible();
|
|
});
|
|
});
|