2022-11-06 07:03:01 +00:00
|
|
|
import { test, expect } from "@playwright/test";
|
|
|
|
import { login } from "./login";
|
2022-09-14 18:18:57 +00:00
|
|
|
|
2022-11-06 07:03:01 +00:00
|
|
|
test.beforeEach(login("/folders"));
|
2022-09-14 18:18:57 +00:00
|
|
|
|
2022-11-06 07:03:01 +00:00
|
|
|
test.describe("Open", () => {
|
2023-03-24 09:34:25 +00:00
|
|
|
test.beforeEach(async ({ page }) => {
|
|
|
|
await page.waitForSelector(".big-icon");
|
|
|
|
await page.waitForTimeout(500);
|
|
|
|
});
|
|
|
|
|
2022-11-06 07:03:01 +00:00
|
|
|
test("Look for Folders", async ({ page }) => {
|
2023-02-26 02:43:48 +00:00
|
|
|
const ct = await page.locator(".big-icon").count();
|
|
|
|
expect(ct, "Number of folders").toBe(2);
|
2022-09-14 18:18:57 +00:00
|
|
|
});
|
|
|
|
|
2022-11-06 07:03:01 +00:00
|
|
|
test("Open folder", async ({ page }) => {
|
|
|
|
await page.locator("text=Local").click();
|
2023-02-26 02:43:48 +00:00
|
|
|
await page.waitForTimeout(2000);
|
2023-03-24 04:48:27 +00:00
|
|
|
const elems = await page.locator(".img-outer").all();
|
|
|
|
expect(elems.length).toBeGreaterThanOrEqual(3);
|
2022-09-14 18:18:57 +00:00
|
|
|
});
|
2022-11-06 07:03:01 +00:00
|
|
|
});
|