mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
refactor: rename Tool.alpha to Tool.experimental
This commit is contained in:
+10
-22
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user