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
+10 -22
View File
@@ -1,4 +1,4 @@
import { test, expect } from "./helpers";
import { expect, test } from "./helpers";
test.describe("Settings Dialog", () => {
test("opens from sidebar", async ({ loggedInPage: page }) => {
@@ -16,27 +16,21 @@ test.describe("Settings Dialog", () => {
await expect(page.getByText(/0\.1\.0|version/i).first()).toBeVisible();
});
test("General section has logout button", async ({
loggedInPage: page,
}) => {
test("General section has logout button", async ({ loggedInPage: page }) => {
await page.locator("aside").getByText("Settings").click();
const logoutBtn = page.getByRole("button", { name: /logout|log out/i });
await expect(logoutBtn).toBeVisible();
});
test("Security section has change password form", async ({
loggedInPage: page,
}) => {
test("Security section has change password form", async ({ loggedInPage: page }) => {
await page.locator("aside").getByText("Settings").click();
// Navigate to Security section
await page.getByText("Security").click();
// Should show password change fields
await expect(
page.getByText(/change password|current password/i).first(),
).toBeVisible();
await expect(page.getByText(/change password|current password/i).first()).toBeVisible();
});
test("People section shows user list", async ({ loggedInPage: page }) => {
@@ -68,9 +62,9 @@ test.describe("Settings Dialog", () => {
await apiKeysBtn.click();
await page.waitForTimeout(500);
await expect(
page.getByRole("button", { name: /generate api key/i }),
).toBeVisible({ timeout: 5_000 });
await expect(page.getByRole("button", { name: /generate api key/i })).toBeVisible({
timeout: 5_000,
});
await context.close();
});
@@ -82,23 +76,17 @@ test.describe("Settings Dialog", () => {
await page.getByText("About").click();
// Should show app description
await expect(
page.getByText(/stirling image|privacy|self-hosted/i).first(),
).toBeVisible();
await expect(page.getByText(/stirling image|privacy|self-hosted/i).first()).toBeVisible();
});
test("System Settings section has configuration", async ({
loggedInPage: page,
}) => {
test("System Settings section has configuration", async ({ loggedInPage: page }) => {
await page.locator("aside").getByText("Settings").click();
// Navigate to System Settings section
await page.getByText("System Settings").click();
// Should show system configuration options
await expect(
page.getByText(/app name|upload limit|theme/i).first(),
).toBeVisible();
await expect(page.getByText(/app name|upload limit|theme/i).first()).toBeVisible();
});
test("settings dialog can be closed", async ({ loggedInPage: page }) => {