mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-10 22:00:43 -04:00
21 lines
711 B
TypeScript
21 lines
711 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test.describe('Sass Challenge', () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto(
|
|
'/learn/front-end-development-libraries/sass/use-for-to-create-a-sass-loop'
|
|
);
|
|
});
|
|
|
|
test('should render the sass preview', async ({ page }) => {
|
|
const frame = page.frameLocator('.challenge-preview iframe');
|
|
expect(frame).not.toBeNull();
|
|
|
|
await expect(frame.locator('.text-1')).toBeVisible();
|
|
await expect(frame.locator('.text-2')).toBeVisible();
|
|
await expect(frame.locator('.text-3')).toBeVisible();
|
|
await expect(frame.locator('.text-4')).toBeVisible();
|
|
await expect(frame.locator('.text-5')).toBeVisible();
|
|
});
|
|
});
|