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", () => {
|
|
|
|
test("Look for Folders", async ({ page }) => {
|
|
|
|
expect(await page.locator(".big-icon").count(), "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();
|
2022-09-14 22:50:02 +00:00
|
|
|
await page.waitForSelector('img[src*="core/preview"]');
|
2022-09-14 18:18:57 +00:00
|
|
|
});
|
2022-11-06 07:03:01 +00:00
|
|
|
});
|