feat: allow admin email updates in UI (#36)

This commit is contained in:
Paul Nothaft
2025-10-13 17:21:03 +02:00
parent f20472ca26
commit 3c2a79a31a
9 changed files with 404 additions and 12 deletions
+12 -2
View File
@@ -86,8 +86,18 @@ test('admin login and gallery viewing smoke test', async ({ page }) => {
// Visit gallery share link and authenticate
await page.goto(shareLink);
const passwordField = page.getByPlaceholder(/gallery password/i);
await passwordField.fill(GALLERY_PASSWORD);
await page.getByRole('button', { name: /View Gallery/i }).click();
if (await passwordField.count()) {
await passwordField.fill(GALLERY_PASSWORD);
}
const viewButton = page.getByRole('button', { name: /View Gallery/i });
if (await viewButton.count()) {
try {
await viewButton.click({ noWaitAfter: true, timeout: 2000 });
} catch {
// Already inside gallery view.
}
}
// Wait for photos grid to appear
const tiles = page.locator('.relative.group');