Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps/web/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Downloads are GitHub release assets; links shared before the move keep working.
/downloads/openfuel-android.apk https://github.com/AKolenda/openfuel/releases/latest/download/openfuel-android.apk 302
/downloads/openfuel-android.apk.sha256 https://github.com/AKolenda/openfuel/releases/latest/download/openfuel-android.apk.sha256 302
/downloads/openfuel-source.zip https://github.com/AKolenda/openfuel/releases/latest/download/openfuel-source.zip 302
/downloads/* https://github.com/AKolenda/openfuel/releases/latest 302
3 changes: 3 additions & 0 deletions tests/browser_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ def open_iframe(page,selector):
check(prefix+'Android APK is a real download link',page.locator('a[data-i18n="a-build"]').get_attribute('href')=='https://github.com/AKolenda/openfuel/releases/latest/download/openfuel-android.apk')
page.locator('.phone-play').click()
frame=open_iframe(page,'#demo-frame')
# The app shows the denial once the browser answers its location request.
try:frame.locator('#location-status',has_text='permission is off').wait_for(timeout=10000)
except PlaywrightError:pass
check(prefix+'website location denial has no sample fallback',frame.locator('.station-card').count()==0 and 'permission is off' in frame.locator('#location-status').inner_text())
page.locator('#demo-dialog [data-close]').click()
if width in [1440,390]:page.screenshot(path=str(OUT/f'website-{width}.png'),full_page=False)
Expand Down
Loading