Skip to content

Commit

Permalink
update(test): skip files on mobile (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm authored Dec 2, 2024
1 parent f7c6c1a commit a288161
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions playwright/specs/24-files.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ({
Expand Down

0 comments on commit a288161

Please sign in to comment.