Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update(test): skip files on mobile #201

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading