ci/e2e tests against mobile (#55347)

Co-authored-by: sembauke <semboot699@gmail.com>
This commit is contained in:
Oliver Eyton-Williams
2024-07-03 06:45:35 +02:00
committed by GitHub
parent 65ee5c656c
commit 5b62ec7137
15 changed files with 133 additions and 56 deletions
+5 -1
View File
@@ -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();