feat: add per-event custom logo upload with bug fixes
Add event-level custom logo upload/delete endpoints and UI, allowing per-event logos to override the global branding logo in gallery views. Also fixes several bugs discovered during testing: - fix: category_id 'individual' parsed as NaN causing photo upload failures - fix: gallery auth race condition where photos query fired before token stored - fix: gallery-photos query not invalidated after favorite/like mutations - fix: e2e test race conditions with View Gallery button detachment
This commit is contained in:
@@ -101,7 +101,11 @@ test.describe('Gallery grid tile quick actions', () => {
|
||||
const passwordField = gallery.getByPlaceholder(/gallery password/i).first();
|
||||
if (await passwordField.count()) {
|
||||
await passwordField.fill(GALLERY_PASSWORD);
|
||||
await gallery.getByRole('button', { name: /View Gallery/i }).click();
|
||||
try {
|
||||
await gallery.getByRole('button', { name: /View Gallery/i }).click({ noWaitAfter: true, timeout: 5000 });
|
||||
} catch {
|
||||
// Auto-auth via share token may have already navigated to gallery view
|
||||
}
|
||||
await gallery.waitForLoadState('networkidle');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user