fix(panel): streamline system settings and server creation
Use shared action buttons and default to the login space. Allow staff to save startup-only experience settings while running and request a durable restart through the existing operator flow. Grant the API PVC list permission needed to detect retained worlds before server creation, and show internal failures with a request ID. Cover permission, maintenance, restart and UI behavior with regression checks.
This commit is contained in:
34 files changed
+555
-103
No files matched your search
@@ -1,5 +1,24 @@
|
||||
import { test, expect, t, expectFitsScreen } from "./fixtures";
|
||||
|
||||
test("login is the default space; live lobby settings save before a confirmed restart", async ({ page, signIn }) => {
|
||||
await signIn("owner");
|
||||
await page.goto("/admin/lobby");
|
||||
await expect(page.getByRole("button", { name: t("lobby:login"), exact: true })).toHaveAttribute("aria-pressed", "true");
|
||||
await expect(page.getByLabel(t("lobby:bookTitle"))).toBeVisible();
|
||||
await page.getByRole("button", { name: t("lobby:lobby"), exact: true }).click();
|
||||
await page.getByLabel(t("lobby:menuTitleEn")).fill("Our Network");
|
||||
await expect(page.getByRole("button", { name: t("lobby:restart"), exact: true })).toBeDisabled();
|
||||
await page.getByRole("button", { name: t("lobby:save"), exact: true }).click();
|
||||
await expect(page.getByText(t("lobby:saved"), { exact: true })).toBeVisible();
|
||||
await expectFitsScreen(page);
|
||||
await page.getByRole("button", { name: t("lobby:restart"), exact: true }).click();
|
||||
const dialog = page.getByRole("dialog", { name: t("lobby:restart_title") });
|
||||
await expect(dialog).toBeVisible();
|
||||
await dialog.getByRole("button", { name: t("lobby:restart"), exact: true }).click();
|
||||
await expect(dialog).toHaveCount(0);
|
||||
await expect(page.getByText(t("lobby:restart_requested"), { exact: true })).toBeVisible();
|
||||
});
|
||||
|
||||
test("a signed-out visit signs in by email code and returns to the page it asked for", async ({ page }) => {
|
||||
await page.goto("/servers");
|
||||
await expect(page).toHaveURL(/\/login\?next=%2Fservers$/);
|
||||
|
||||
Reference in new issue
Block a user