mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
ci/e2e tests against mobile (#55347)
Co-authored-by: sembauke <semboot699@gmail.com>
This commit is contained in:
committed by
GitHub
parent
65ee5c656c
commit
5b62ec7137
+5
-1
@@ -7,7 +7,11 @@ test.describe('Sass Challenge', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('should render the sass preview', async ({ page }) => {
|
||||
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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user