Skip to content

Commit e6e6237

Browse files
🎨 Auto format and update with pre-commit
1 parent 408de0d commit e6e6237

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

frontend/tests/admin.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ test.describe("Admin page access control", () => {
231231
const isOnAdmin = page.url().includes("/admin")
232232
if (isOnAdmin) {
233233
// If still on admin, should see forbidden or no users table
234-
await expect(
235-
page.getByRole("heading", { name: "Users" }),
236-
).not.toBeVisible({ timeout: 2000 }).catch(() => {
237-
// Alternative: page shows error
238-
})
234+
await expect(page.getByRole("heading", { name: "Users" }))
235+
.not.toBeVisible({ timeout: 2000 })
236+
.catch(() => {
237+
// Alternative: page shows error
238+
})
239239
}
240240
})
241241

frontend/tests/items.spec.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ const randomItemDescription = () =>
1111
test("Items page is accessible and shows correct title", async ({ page }) => {
1212
await page.goto("/items")
1313
await expect(page.getByRole("heading", { name: "Items" })).toBeVisible()
14-
await expect(
15-
page.getByText("Create and manage your items"),
16-
).toBeVisible()
14+
await expect(page.getByText("Create and manage your items")).toBeVisible()
1715
})
1816

1917
test("Add Item button is visible", async ({ page }) => {
@@ -203,11 +201,7 @@ test.describe("Items empty state", () => {
203201
await page.goto("/items")
204202

205203
// New users should have no items
206-
await expect(
207-
page.getByText("You don't have any items yet"),
208-
).toBeVisible()
209-
await expect(
210-
page.getByText("Add a new item to get started"),
211-
).toBeVisible()
204+
await expect(page.getByText("You don't have any items yet")).toBeVisible()
205+
await expect(page.getByText("Add a new item to get started")).toBeVisible()
212206
})
213207
})

0 commit comments

Comments
 (0)