Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

About: the install tip on Windows and Linux names Chrome's install icon, not Safari's Share menu

Duarte Santos03872e37808a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 492ac6d9d..92c828701 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -90,6 +90,8 @@ you leave it alone. Handy for deciding whether those legs are really ready (than
v1.4 explain themselves in German now (#645, thanks @junkerderprovinz).
- In the Compact and List layouts the exercise chips at the top follow along: the one you tap
lights up, and so does the one you scroll to (#323, thanks @Space-Hermes).
+- The install tip in About on a Windows or Linux browser points at Chrome's install icon,
+ not at an iPhone's Share menu you don't have.
## v1.4.2 (2026-10-18)
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js
index e3b1ace42..e26ccc26a 100644
--- a/frontend/src/locales/ar.js
+++ b/frontend/src/locales/ar.js
@@ -325,6 +325,7 @@ export default {
'Import failed: {0}': 'تعذّر الاستيراد: {0}',
'Tip': 'نصيحة',
'In Chrome: ⋮ menu → Add to Home screen': 'في Chrome: قائمة ⋮ ← إضافة إلى الشاشة الرئيسية',
+ 'In Chrome or Edge: the install icon in the address bar': 'في Chrome أو Edge: أيقونة التثبيت في شريط العنوان',
'In Safari: Share → Add to Home Screen': 'في Safari: مشاركة ← إضافة إلى الشاشة الرئيسية',
'to install openGym as a full-screen app.': 'لتثبيت openGym كتطبيق بملء الشاشة.',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'تتزامن بياناتك مع ملفك الشخصي. سجّل الدخول من أي مكان وستجدها هناك.',
diff --git a/frontend/src/locales/bn.js b/frontend/src/locales/bn.js
index e1ffee107..c5208ab85 100644
--- a/frontend/src/locales/bn.js
+++ b/frontend/src/locales/bn.js
@@ -505,6 +505,7 @@ export default {
'Import failed: {0}': 'ইমপোর্ট ব্যর্থ: {0}',
'Tip': 'টিপ',
'In Chrome: ⋮ menu → Add to Home screen': 'Chrome-এ: ⋮ মেনু → হোম স্ক্রিনে যোগ করুন',
+ 'In Chrome or Edge: the install icon in the address bar': 'Chrome বা Edge-এ: অ্যাড্রেস বারে ইনস্টল আইকন',
'In Safari: Share → Add to Home Screen': 'Safari-তে: শেয়ার → হোম স্ক্রিনে যোগ করুন',
'to install openGym as a full-screen app.': 'openGym-কে ফুল-স্ক্রিন অ্যাপ হিসেবে ইনস্টল করতে।',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'আপনার ডেটা আপনার প্রোফাইলের সাথে সিঙ্ক হয়। যেকোনো জায়গায় সাইন ইন করলেই তা পাবেন।',
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index a715e1a2c..933277db8 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -494,6 +494,7 @@ export default {
'Import failed: {0}': 'Import fehlgeschlagen: {0}',
'Tip': 'Tipp',
'In Chrome: ⋮ menu → Add to Home screen': 'In Chrome: ⋮-Menü → Zum Startbildschirm hinzufügen',
+ 'In Chrome or Edge: the install icon in the address bar': 'In Chrome oder Edge: das Installieren-Symbol in der Adressleiste',
'In Safari: Share → Add to Home Screen': 'In Safari: Teilen → Zum Home-Bildschirm',
'to install openGym as a full-screen app.': 'um openGym als Vollbild-App zu installieren.',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'Deine Daten synchronisieren mit deinem Profil. Melde dich irgendwo an und sie sind da.',
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index 28accdfb8..1a0531a53 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -479,6 +479,7 @@ export default {
'Import failed: {0}': 'Importación fallida: {0}',
'Tip': 'Consejo',
'In Chrome: ⋮ menu → Add to Home screen': 'En Chrome: menú ⋮ → Añadir a pantalla de inicio',
+ 'In Chrome or Edge: the install icon in the address bar': 'En Chrome o Edge: el icono de instalar en la barra de direcciones',
'In Safari: Share → Add to Home Screen': 'En Safari: Compartir → Añadir a pantalla de inicio',
'to install openGym as a full-screen app.': 'para instalar openGym como app a pantalla completa.',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'Tus datos se sincronizan con tu perfil. Inicia sesión donde sea y ahí están.',
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index f27a39ad8..1f0ecdf6f 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -479,6 +479,7 @@ export default {
'Import failed: {0}': 'Échec de l’import : {0}',
'Tip': 'Astuce',
'In Chrome: ⋮ menu → Add to Home screen': 'Dans Chrome : menu ⋮ → Ajouter à l’écran d’accueil',
+ 'In Chrome or Edge: the install icon in the address bar': 'Dans Chrome ou Edge : l’icône d’installation dans la barre d’adresse',
'In Safari: Share → Add to Home Screen': 'Dans Safari : Partager → Sur l’écran d’accueil',
'to install openGym as a full-screen app.': 'pour installer openGym en app plein écran.',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'Tes données se synchronisent avec ton profil. Connecte-toi n’importe où et elles sont là.',
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index 207a6ecd1..d72604e5a 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -479,6 +479,7 @@ export default {
'Import failed: {0}': 'आयात विफल: {0}',
'Tip': 'सुझाव',
'In Chrome: ⋮ menu → Add to Home screen': 'Chrome में: ⋮ मेनू → होम स्क्रीन पर जोड़ें',
+ 'In Chrome or Edge: the install icon in the address bar': 'Chrome या Edge में: एड्रेस बार में इंस्टॉल आइकन',
'In Safari: Share → Add to Home Screen': 'Safari में: शेयर → होम स्क्रीन पर जोड़ें',
'to install openGym as a full-screen app.': 'से openGym को फुल-स्क्रीन ऐप के रूप में इंस्टॉल करें।',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'आपका डेटा प्रोफ़ाइल से सिंक होता है। कहीं भी साइन इन करें, सब वहीं मिलेगा।',
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index 65a837aac..19720ebb7 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -476,6 +476,7 @@ export default {
'Import failed: {0}': 'Az importálás sikertelen: {0}',
'Tip': 'Tipp',
'In Chrome: ⋮ menu → Add to Home screen': 'Chrome-ban: ⋮ menü → Hozzáadás a kezdőképernyőhöz',
+ 'In Chrome or Edge: the install icon in the address bar': 'Chrome-ban vagy Edge-ben: a címsorban lévő telepítés ikon',
'In Safari: Share → Add to Home Screen': 'Safariban: Megosztás → Hozzáadás a kezdőképernyőhöz',
'to install openGym as a full-screen app.': 'hogy az openGym-et teljes képernyős appként telepítsd.',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'Az adataid szinkronizálódnak a profiloddal. Jelentkezz be bárhol, és ott lesznek.',
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index f079c1b0f..823fa9e8c 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -479,6 +479,7 @@ export default {
'Import failed: {0}': 'Import fallito: {0}',
'Tip': 'Suggerimento',
'In Chrome: ⋮ menu → Add to Home screen': 'In Chrome: menu ⋮ → Aggiungi a schermata Home',
+ 'In Chrome or Edge: the install icon in the address bar': 'In Chrome o Edge: l’icona di installazione nella barra degli indirizzi',
'In Safari: Share → Add to Home Screen': 'In Safari: Condividi → Aggiungi a Home',
'to install openGym as a full-screen app.': 'per installare openGym come app a schermo intero.',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'I tuoi dati si sincronizzano col profilo. Accedi da qualsiasi parte e li ritrovi.',
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index b70d2fd9b..3c9f1c7d3 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -479,6 +479,7 @@ export default {
'Import failed: {0}': '가져오기 실패: {0}',
'Tip': '팁',
'In Chrome: ⋮ menu → Add to Home screen': 'Chrome에서: ⋮ 메뉴 → 홈 화면에 추가',
+ 'In Chrome or Edge: the install icon in the address bar': 'Chrome 또는 Edge에서: 주소창의 설치 아이콘',
'In Safari: Share → Add to Home Screen': 'Safari에서: 공유 → 홈 화면에 추가',
'to install openGym as a full-screen app.': '하면 openGym을 전체 화면 앱으로 설치할 수 있어요.',
'Your data syncs with your profile. Sign in anywhere and it’s there.': '데이터가 프로필과 동기화돼요. 어디서 로그인해도 그대로 있어요.',
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index e8f1caffa..25496fe35 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -479,6 +479,7 @@ export default {
'Import failed: {0}': 'Import nie powiódł się: {0}',
'Tip': 'Wskazówka',
'In Chrome: ⋮ menu → Add to Home screen': 'W Chrome: menu ⋮ → Dodaj do ekranu głównego',
+ 'In Chrome or Edge: the install icon in the address bar': 'W Chrome lub Edge: ikona instalacji na pasku adresu',
'In Safari: Share → Add to Home Screen': 'W Safari: Udostępnij → Do ekranu początkowego',
'to install openGym as a full-screen app.': 'aby zainstalować openGym jako aplikację pełnoekranową.',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'Twoje dane synchronizują się z profilem. Zaloguj się gdziekolwiek i wszystko tam jest.',
diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.js
index 8c393af15..65f9a4a86 100644
--- a/frontend/src/locales/pt-BR.js
+++ b/frontend/src/locales/pt-BR.js
@@ -163,6 +163,7 @@ export const PT_BR_OVERRIDES = {
'This replaces all current data with the backup file.': 'Isso substitui todos os dados atuais pelo arquivo de backup.',
'Backup imported': 'Backup importado',
'In Chrome: ⋮ menu → Add to Home screen': 'No Chrome: menu ⋮ → Adicionar à tela inicial',
+ 'In Chrome or Edge: the install icon in the address bar': 'No Chrome ou Edge: o ícone de instalar na barra de endereço',
'In Safari: Share → Add to Home Screen': 'No Safari: Compartilhar → Adicionar à Tela de Início',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'Seus dados sincronizam com o seu perfil. Entre em qualquer lugar e eles estão lá.',
'Guest data stays on this device, so export a backup now and then!': 'Os dados de visitante ficam neste dispositivo, então exporte um backup de vez em quando!',
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index cb38c33f4..0d6e2da09 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -479,6 +479,7 @@ export default {
'Import failed: {0}': 'Importação falhou: {0}',
'Tip': 'Dica',
'In Chrome: ⋮ menu → Add to Home screen': 'No Chrome: menu ⋮ → Adicionar ao ecrã principal',
+ 'In Chrome or Edge: the install icon in the address bar': 'No Chrome ou Edge: o ícone de instalar na barra de endereço',
'In Safari: Share → Add to Home Screen': 'No Safari: Partilhar → Adicionar ao ecrã principal',
'to install openGym as a full-screen app.': 'para instalar o openGym como app em ecrã inteiro.',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'Os teus dados sincronizam com o teu perfil. Inicia sessão em qualquer lado e estão lá.',
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 2e0f4916d..bb01e8080 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -469,6 +469,7 @@ export default {
'Import failed: {0}': 'Импорт не удался: {0}',
'Tip': 'Совет',
'In Chrome: ⋮ menu → Add to Home screen': 'В Chrome: меню ⋮ → Добавить на главный экран',
+ 'In Chrome or Edge: the install icon in the address bar': 'В Chrome или Edge: значок установки в адресной строке',
'In Safari: Share → Add to Home Screen': 'В Safari: Поделиться → На экран «Домой»',
'to install openGym as a full-screen app.': 'чтобы установить openGym как полноэкранное приложение.',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'Данные синхронизируются с профилем. Войдите где угодно, и они уже там.',
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index b9db5628b..5a73469c7 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -476,6 +476,7 @@ export default {
'Import failed: {0}': 'นำเข้าไม่สำเร็จ: {0}',
'Tip': 'เคล็ดลับ',
'In Chrome: ⋮ menu → Add to Home screen': 'ใน Chrome: เมนู ⋮ → เพิ่มไปยังหน้าจอหลัก',
+ 'In Chrome or Edge: the install icon in the address bar': 'ใน Chrome หรือ Edge: ไอคอนติดตั้งในแถบที่อยู่',
'In Safari: Share → Add to Home Screen': 'ใน Safari: แชร์ → เพิ่มไปยังหน้าจอโฮม',
'to install openGym as a full-screen app.': 'เพื่อติดตั้ง openGym เป็นแอปเต็มหน้าจอ',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'ข้อมูลของคุณซิงค์กับโปรไฟล์ เข้าสู่ระบบที่ไหนก็เจอข้อมูล',
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index 38f340696..67b2bdecc 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -479,6 +479,7 @@ export default {
'Import failed: {0}': 'İçe aktarma başarısız: {0}',
'Tip': 'İpucu',
'In Chrome: ⋮ menu → Add to Home screen': 'Chrome’da: ⋮ menü → Ana ekrana ekle',
+ 'In Chrome or Edge: the install icon in the address bar': 'Chrome veya Edge’de: adres çubuğundaki yükle simgesi',
'In Safari: Share → Add to Home Screen': 'Safari’de: Paylaş → Ana Ekrana Ekle',
'to install openGym as a full-screen app.': 'ile openGym’i tam ekran uygulama olarak kurabilirsin.',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'Verilerin profilinle eşitlenir. Nereden giriş yaparsan yap, oradadır.',
diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js
index 544a4ee65..bed8479c5 100644
--- a/frontend/src/locales/uk.js
+++ b/frontend/src/locales/uk.js
@@ -313,6 +313,7 @@ export default {
'Import failed: {0}': 'Імпорт не вдався: {0}',
'Tip': 'Порада',
'In Chrome: ⋮ menu → Add to Home screen': 'У Chrome: меню ⋮ → Додати на головний екран',
+ 'In Chrome or Edge: the install icon in the address bar': 'У Chrome або Edge: значок встановлення в адресному рядку',
'In Safari: Share → Add to Home Screen': 'У Safari: Поділитися → На екран «Додому»',
'to install openGym as a full-screen app.': 'щоб встановити openGym як повноекранний застосунок.',
'Your data syncs with your profile. Sign in anywhere and it’s there.': 'Дані синхронізуються з профілем. Увійди будь-де, і вони там.',
diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.js
index 325f1fdd0..85c36f1a2 100644
--- a/frontend/src/locales/zh-TW.js
+++ b/frontend/src/locales/zh-TW.js
@@ -471,6 +471,7 @@ export default {
'Import failed: {0}': '匯入失敗:{0}',
'Tip': '秘訣提示',
'In Chrome: ⋮ menu → Add to Home screen': '在 Chrome 中:點擊選單 ⋮ → 加入主畫面',
+ 'In Chrome or Edge: the install icon in the address bar': '在 Chrome 或 Edge 中:網址列中的安裝圖示',
'In Safari: Share → Add to Home Screen': '在 Safari 中:點擊分享按鈕 → 加入主畫面',
'to install openGym as a full-screen app.': '即可將 openGym 當作全螢幕 App 安裝使用。',
'Your data syncs with your profile. Sign in anywhere and it’s there.': '你的資料會隨個人檔案同步。在任何地方登入,資料都在。',
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index c5df1c9c2..4df825a4d 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -479,6 +479,7 @@ export default {
'Import failed: {0}': '导入失败:{0}',
'Tip': '提示',
'In Chrome: ⋮ menu → Add to Home screen': '在 Chrome 中:⋮ 菜单 → 添加到主屏幕',
+ 'In Chrome or Edge: the install icon in the address bar': '在 Chrome 或 Edge 中:地址栏里的安装图标',
'In Safari: Share → Add to Home Screen': '在 Safari 中:分享 → 添加到主屏幕',
'to install openGym as a full-screen app.': '即可将 openGym 安装为全屏应用。',
'Your data syncs with your profile. Sign in anywhere and it’s there.': '你的数据随档案同步。在任何地方登录,数据都在。',
diff --git a/frontend/src/views/Settings.jsx b/frontend/src/views/Settings.jsx
index a08a30008..f3857effc 100644
--- a/frontend/src/views/Settings.jsx
+++ b/frontend/src/views/Settings.jsx
@@ -92,6 +92,10 @@ const standalone = () => {
try { return !!(window.matchMedia?.('(display-mode: standalone)').matches || window.navigator.standalone === true) } catch { return false }
}
+// Apple devices, the iPad included (it says Macintosh): the install tip's Safari wording. Read here
+// rather than from lib/api.js, whose test mocks across the Settings suites only carry IS_ANDROID.
+const APPLE_UA = typeof navigator !== 'undefined' && /iPhone|iPad|iPod|Macintosh/.test(navigator.userAgent)
+
export default function Settings({ page = null, find = null, via = null, entryKey = null }) {
const nav = useNavigate()
const S = useStore(s => s.S)
@@ -423,7 +427,7 @@ export default function Settings({ page = null, find = null, via = null, entryKe
sound: !!S.sound, playOnSilent: playOnSilentSupported(), canVibrate, vibrate: S.vibrate !== false,
profiles: (S.equipProfiles || []).length > 0, nameLang: EXERCISE_NAME_LANGS.includes(baseLang(lang)),
pushOK: !MOBILE && pushSupported(), reminderOn: !!S.reminder?.on, nudge: !!S.reminder?.nudge,
- autoBackup: !!S.autoBackup, synced: !!sync, installTip: !MOBILE && !standalone(), androidWeb: IS_ANDROID,
+ autoBackup: !!S.autoBackup, synced: !!sync, installTip: !MOBILE && !standalone(), androidWeb: IS_ANDROID, desktopWeb: !IS_ANDROID && !APPLE_UA,
}
const mode = scheduleModeOf(S)
const layout = ['list', 'compact', 'focus'].includes(S.workoutView) ? S.workoutView : 'cards'
@@ -908,10 +912,12 @@ export default function Settings({ page = null, find = null, via = null, entryKe
<Row icon="heart" iconTint="var(--purple)" title="GitHub Sponsors" accessory="chevron"
onClick={() => window.open('https://github.com/sponsors/DuarteSantos8', '_blank', 'noopener')} />
</Section>
- {/* "Add to Home screen": not inside the phone app, and not once it is installed. */}
+ {/* "Add to Home screen": not inside the phone app, and not once it is installed. Safari's
+ Share menu only on Apple (an iPad says Macintosh too); Windows and Linux get Chrome's
+ install icon instead of an iPhone tip. */}
{!MOBILE && !standalone() && <Section title={t('Tip')}>
<Row icon="share" iconTint="var(--blue)"
- title={IS_ANDROID ? t('In Chrome: ⋮ menu → Add to Home screen') : t('In Safari: Share → Add to Home Screen')}
+ title={IS_ANDROID ? t('In Chrome: ⋮ menu → Add to Home screen') : APPLE_UA ? t('In Safari: Share → Add to Home Screen') : t('In Chrome or Edge: the install icon in the address bar')}
subtitle={t('to install openGym as a full-screen app.') + ' ' + (user ? t('Your data syncs with your profile. Sign in anywhere and it’s there.') : t('Guest data stays on this device, so export a backup now and then!'))} />
</Section>}
{/* The version, where the support template tells people to look for it. On the phone
diff --git a/frontend/src/views/settings-pages.js b/frontend/src/views/settings-pages.js
index d10c5e159..c2ac926e2 100644
--- a/frontend/src/views/settings-pages.js
+++ b/frontend/src/views/settings-pages.js
@@ -140,7 +140,8 @@ export const SEARCH = [
{ page: 'about', title: 'Get the Android app', icon: 'download', tint: 'var(--green)', kw: 'apk android download app', when: c => !c.mobile },
{ page: 'about', title: 'Version', icon: 'info', tint: 'var(--grey)', kw: 'version about licence license source code open source' },
{ page: 'about', title: 'In Chrome: ⋮ menu → Add to Home screen', icon: 'share', tint: 'var(--blue)', kw: 'install app home screen tip pwa', when: c => c.installTip && c.androidWeb },
- { page: 'about', title: 'In Safari: Share → Add to Home Screen', icon: 'share', tint: 'var(--blue)', kw: 'install app home screen tip pwa', when: c => c.installTip && !c.androidWeb },
+ { page: 'about', title: 'In Safari: Share → Add to Home Screen', icon: 'share', tint: 'var(--blue)', kw: 'install app home screen tip pwa', when: c => c.installTip && !c.androidWeb && !c.desktopWeb },
+ { page: 'about', title: 'In Chrome or Edge: the install icon in the address bar', icon: 'share', tint: 'var(--blue)', kw: 'install app home screen tip pwa desktop', when: c => c.installTip && c.desktopWeb },
// Account
{ page: 'account', title: 'Sync now', icon: 'reset', tint: 'var(--acc)', kw: 'server sync upload refresh status connection', when: c => !!c.user && !c.demo && c.synced },
{ page: 'account', title: 'Passkeys', icon: 'fingerprint', tint: 'var(--acc)', kw: 'passkey security login', when: signedInWeb },
diff --git a/frontend/src/views/settings-pages.test.jsx b/frontend/src/views/settings-pages.test.jsx
index e78586dff..a316e4c69 100644
--- a/frontend/src/views/settings-pages.test.jsx
+++ b/frontend/src/views/settings-pages.test.jsx
@@ -81,6 +81,8 @@ const guestWeb = {
user: null, mobile: false, android: false, demo: false, wakeOK: true, hasMedia: false, pwOn: false, webauthn: false,
sound: true, playOnSilent: false, canVibrate: true, vibrate: true, profiles: true, nameLang: false,
pushOK: false, reminderOn: false, nudge: false, autoBackup: false, synced: false, installTip: true, androidWeb: false,
+ // the test browser (happy-dom) is neither Android nor Apple, so the page shows the desktop install tip
+ desktopWeb: true,
}
describe('the root', () => {
@@ -206,8 +208,10 @@ describe('the search lands on a row', () => {
expect(searchSettings('loop', web, tr).map(h => h.title)).toContain('How you train')
expect(searchSettings('swipe', web, tr)[0].title).toBe('Swipe actions')
expect(searchSettings('gesture', web, tr).map(h => h.title)).toEqual(['Swipe actions'])
- expect(searchSettings('home screen', web, tr).map(h => h.title)).toEqual(['In Safari: Share → Add to Home Screen'])
- expect(searchSettings('install', { ...web, androidWeb: true }, tr).map(h => h.title)).toEqual(['In Chrome: ⋮ menu → Add to Home screen'])
+ expect(searchSettings('home screen', { ...web, desktopWeb: false }, tr).map(h => h.title)).toEqual(['In Safari: Share → Add to Home Screen'])
+ expect(searchSettings('install', { ...web, androidWeb: true, desktopWeb: false }, tr).map(h => h.title)).toEqual(['In Chrome: ⋮ menu → Add to Home screen'])
+ // Windows and Linux are neither: Chrome's install icon, not an iPhone's Share menu (night QA 10-19).
+ expect(searchSettings('install', web, tr).map(h => h.title)).toEqual(['In Chrome or Edge: the install icon in the address bar'])
expect(searchSettings('backup folder', { ...guestWeb, mobile: true, android: true, autoBackup: true }, tr).map(h => h.title)).toEqual(['Backup folder'])
expect(searchSettings('backup folder', { ...guestWeb, mobile: true, android: true }, tr)).toEqual([])
})