From 477f9d4d0227e3469ab4e3bc80357e4b62611530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Carden=CC=83a?= <35935591+luisecm@users.noreply.github.com> Date: Mon, 2 Dec 2024 08:38:20 -0600 Subject: [PATCH] update(test): skip files on mobile --- playwright/specs/24-files.spec.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/playwright/specs/24-files.spec.ts b/playwright/specs/24-files.spec.ts index 36b6e5f..51c652c 100644 --- a/playwright/specs/24-files.spec.ts +++ b/playwright/specs/24-files.spec.ts @@ -6,12 +6,17 @@ import { LoginPinPage } from "playwright/PageObjects/LoginPin"; test.describe("Files Page Tests", () => { test.beforeEach(async ({ singleUserContext }) => { - const page = singleUserContext.page; const viewport = singleUserContext.viewport; - const chatsMainPage = new ChatsMainPage(page, viewport); - await chatsMainPage.dismissDownloadAlert(); - await chatsMainPage.goToFiles(); - await page.waitForURL("/files"); + if (viewport === "desktop-chrome") { + const page = singleUserContext.page; + const viewport = singleUserContext.viewport; + const chatsMainPage = new ChatsMainPage(page, viewport); + await chatsMainPage.dismissDownloadAlert(); + await chatsMainPage.goToFiles(); + await page.waitForURL("/files"); + } else { + test.skip(); + } }); test("F3, F4 - Amount of Free and Total should appear in Toolbar", async ({