refactor: rename Tool.alpha to Tool.experimental

This commit is contained in:
Siddharth Kumar Sah
2026-03-26 01:10:51 +08:00
parent ab370a74fe
commit 585d66f0c9
178 changed files with 5637 additions and 4082 deletions
+13 -26
View File
@@ -1,4 +1,4 @@
import { test, expect } from "./helpers";
import { expect, test } from "./helpers";
test.describe("Navigation", () => {
test("sidebar Tools link goes to home", async ({ loggedInPage: page }) => {
@@ -7,9 +7,7 @@ test.describe("Navigation", () => {
await expect(page).toHaveURL("/");
});
test("sidebar Grid link goes to fullscreen view", async ({
loggedInPage: page,
}) => {
test("sidebar Grid link goes to fullscreen view", async ({ loggedInPage: page }) => {
// Click the Grid link in the sidebar (links to /fullscreen)
const gridLink = page.locator("aside").getByText("Grid");
// If "Grid" text isn't directly visible (collapsed sidebar), try the link
@@ -22,25 +20,19 @@ test.describe("Navigation", () => {
await expect(page).toHaveURL("/fullscreen");
});
test("sidebar Automate link goes to automate page", async ({
loggedInPage: page,
}) => {
test("sidebar Automate link goes to automate page", async ({ loggedInPage: page }) => {
await page.locator("aside").getByText("Automate").click();
await expect(page).toHaveURL("/automate");
});
test("sidebar Settings button opens settings dialog", async ({
loggedInPage: page,
}) => {
test("sidebar Settings button opens settings dialog", async ({ loggedInPage: page }) => {
await page.locator("aside").getByText("Settings").click();
// Settings dialog should appear with section headings
await expect(page.getByRole("heading", { name: "General" })).toBeVisible();
await expect(page.getByRole("button", { name: "Security" })).toBeVisible();
});
test("fullscreen grid page renders tool cards", async ({
loggedInPage: page,
}) => {
test("fullscreen grid page renders tool cards", async ({ loggedInPage: page }) => {
await page.goto("/fullscreen");
// Should show category headers
@@ -54,9 +46,7 @@ test.describe("Navigation", () => {
await expect(page.getByText("Convert")).toBeVisible();
});
test("fullscreen grid has search functionality", async ({
loggedInPage: page,
}) => {
test("fullscreen grid has search functionality", async ({ loggedInPage: page }) => {
await page.goto("/fullscreen");
const searchInput = page.getByPlaceholder(/search/i);
@@ -73,24 +63,21 @@ test.describe("Navigation", () => {
await page.goto("/fullscreen");
// Click on Resize tool
await page.getByRole("link", { name: /resize/i }).first().click();
await page
.getByRole("link", { name: /resize/i })
.first()
.click();
await expect(page).toHaveURL("/resize");
});
test("automate page shows pipeline templates", async ({
loggedInPage: page,
}) => {
test("automate page shows pipeline templates", async ({ loggedInPage: page }) => {
await page.goto("/automate");
// Should show pipeline builder
await expect(
page.getByText(/pipeline|automation|workflow/i).first(),
).toBeVisible();
await expect(page.getByText(/pipeline|automation|workflow/i).first()).toBeVisible();
});
test("tool panel shows categories on home page", async ({
loggedInPage: page,
}) => {
test("tool panel shows categories on home page", async ({ loggedInPage: page }) => {
// The tool panel should show categorized tools
await expect(page.getByText("Essentials").first()).toBeVisible();
});