✅(frontend) update e2e test for folder creation

Refactored the create-folder test to improve clarity and functionality.
Removed outdated assertions and added checks for visibility of relevant
UI elements before creating a new folder. This enhances the test's
reliability and ensures it accurately reflects user interactions.
This commit is contained in:
Nathan Panchout
2026-02-06 15:39:37 +01:00
committed by Manuel Raynaud
parent 6342a9c5d8
commit fe5597d00b
@@ -1,18 +1,15 @@
import test, { expect } from "@playwright/test";
import { clearDb, getStorageState, login } from "./utils-common";
import { clearDb, login } from "./utils-common";
test("Create a folder", async ({ page }) => {
await clearDb();
await login(page, "drive@example.com");
await page.goto("/");
await expect(page.getByText("This tab is empty")).toBeVisible();
await expect(page.getByText("Import or create files and")).toBeVisible();
await page.getByRole("button", { name: "Create Folder" }).click();
await expect(page.getByText("Drop your files here")).toBeVisible();
await expect(
page.getByRole("cell", { name: "My first folder" })
).not.toBeVisible();
await page.getByRole("button", { name: "add Create" }).click();
await page.getByText("New folder").click();
await page
.getByRole("textbox", { name: "Folder name" })
.fill("My first folder");