chore: import upstream snapshot with attribution
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
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
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
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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, isMobile }) => {
|
||||
if (isMobile) {
|
||||
await page.getByRole('tab', { name: 'Preview' }).click();
|
||||
}
|
||||
|
||||
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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user