mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-06 06:01:31 -05:00
21 lines
589 B
TypeScript
21 lines
589 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('iframe[title="YouTube video player"]')
|
|
).toBeVisible();
|
|
await expect(
|
|
page
|
|
.frameLocator('.display-youtube-video')
|
|
.getByRole('button', { name: 'Play' })
|
|
).toBeVisible();
|
|
});
|
|
});
|