dde272c4b8
CD - Docker - GHCR Images / Build and Push Images (push) Waiting to run
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
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();
|
|
});
|
|
});
|