Skip to content

Commit b788570

Browse files
authored
Merge pull request #1162 from Wikid82/bot/update-geolite2-checksum
chore(docker): update GeoLite2-Country.mmdb checksum
2 parents eabf358 + 7c7adea commit b788570

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ SHELL ["/bin/ash", "-o", "pipefail", "-c"]
679679
# Note: In production, users should provide their own MaxMind license key
680680
# This uses the publicly available GeoLite2 database
681681
# In CI, timeout quickly rather than retrying to save build time
682-
ARG GEOLITE2_COUNTRY_SHA256=53941fb054c1c9c1748d5b3f271d0a26c235e207c0f2a008ccb381ef7dd26161
682+
ARG GEOLITE2_COUNTRY_SHA256=db73536b02d376c82d63d23aeb0fbac4795901a76b27850ea68c1fab9425270c
683683
RUN mkdir -p /app/data/geoip && \
684684
if [ "$CI" = "true" ] || [ "$CI" = "1" ]; then \
685685
echo "⏱️ CI detected - quick download (10s timeout, no retries)"; \

tests/core/authentication.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,14 +412,19 @@ test.describe('Authentication Flows', () => {
412412
// If no redirect, check for session expired message
413413
}
414414

415-
// Should either redirect to login or show session expired message
415+
// Should either redirect to login or show session expired message.
416+
// Don't rely on page.url() alone: Firefox can lag in reporting URL
417+
// changes from React Router's client-side history.replaceState(),
418+
// so also check for the rendered login form as DOM-level proof of
419+
// the redirect (same pattern as the sister test above).
416420
const isLoginPage = page.url().includes('/login');
421+
const hasLoginForm = await page.locator('input[type="email"]').isVisible().catch(() => false);
417422
const hasSessionExpiredMessage = await page
418423
.getByText(/session.*expired|please.*login|unauthorized/i)
419424
.isVisible()
420425
.catch(() => false);
421426

422-
expect(isLoginPage || hasSessionExpiredMessage).toBeTruthy();
427+
expect(isLoginPage || hasLoginForm || hasSessionExpiredMessage).toBeTruthy();
423428
});
424429
});
425430
});

0 commit comments

Comments
 (0)