Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(dashboard): label the Number Checker tester button as a link

Yudhi Armyndharise0bec04721aa
diff --git a/dashboard/src/i18n/locales/ar.json b/dashboard/src/i18n/locales/ar.json
index c71e7d26e..856b0c4c3 100644
--- a/dashboard/src/i18n/locales/ar.json
+++ b/dashboard/src/i18n/locales/ar.json
@@ -1070,7 +1070,7 @@
"copy": "نسخ",
"copied": "تم النسخ",
"checkedAt": "وقت الفحص",
- "openTester": "فتح في اختبار الرسائل"
+ "openTester": "الانتقال إلى اختبار الرسائل"
},
"recent": {
"title": "عمليات الفحص الأخيرة",
diff --git a/dashboard/src/i18n/locales/de.json b/dashboard/src/i18n/locales/de.json
index 816ffb626..746c88b2b 100644
--- a/dashboard/src/i18n/locales/de.json
+++ b/dashboard/src/i18n/locales/de.json
@@ -1045,7 +1045,7 @@
"copy": "Kopieren",
"copied": "Kopiert",
"checkedAt": "Geprüft um",
- "openTester": "Im Nachrichtentester öffnen"
+ "openTester": "Zum Nachrichtentester"
},
"recent": {
"title": "Letzte Prüfungen",
diff --git a/dashboard/src/i18n/locales/en.json b/dashboard/src/i18n/locales/en.json
index 789b64949..5e2493d66 100644
--- a/dashboard/src/i18n/locales/en.json
+++ b/dashboard/src/i18n/locales/en.json
@@ -1045,7 +1045,7 @@
"copy": "Copy",
"copied": "Copied",
"checkedAt": "Checked At",
- "openTester": "Open in Message Tester"
+ "openTester": "Go to Message Tester"
},
"recent": {
"title": "Recent Checks",
diff --git a/dashboard/src/i18n/locales/es.json b/dashboard/src/i18n/locales/es.json
index f7e4c1832..d8effea14 100644
--- a/dashboard/src/i18n/locales/es.json
+++ b/dashboard/src/i18n/locales/es.json
@@ -1051,7 +1051,7 @@
"copy": "Copiar",
"copied": "Copiado",
"checkedAt": "Hora de verificación",
- "openTester": "Abrir en el probador de mensajes"
+ "openTester": "Ir al probador de mensajes"
},
"recent": {
"title": "Verificaciones recientes",
diff --git a/dashboard/src/i18n/locales/fr.json b/dashboard/src/i18n/locales/fr.json
index 466e47177..8ce8f5191 100644
--- a/dashboard/src/i18n/locales/fr.json
+++ b/dashboard/src/i18n/locales/fr.json
@@ -1051,7 +1051,7 @@
"copy": "Copier",
"copied": "Copié",
"checkedAt": "Vérifié à",
- "openTester": "Ouvrir dans le testeur de messages"
+ "openTester": "Aller au testeur de messages"
},
"recent": {
"title": "Vérifications récentes",
diff --git a/dashboard/src/i18n/locales/he.json b/dashboard/src/i18n/locales/he.json
index 80552adcb..19c45df19 100644
--- a/dashboard/src/i18n/locales/he.json
+++ b/dashboard/src/i18n/locales/he.json
@@ -1058,7 +1058,7 @@
"copy": "העתקה",
"copied": "הועתק",
"checkedAt": "זמן הבדיקה",
- "openTester": "פתיחה בבדיקת הודעות"
+ "openTester": "מעבר לבדיקת הודעות"
},
"recent": {
"title": "בדיקות אחרונות",
diff --git a/dashboard/src/i18n/locales/hi.json b/dashboard/src/i18n/locales/hi.json
index 5233683e9..62094a926 100644
--- a/dashboard/src/i18n/locales/hi.json
+++ b/dashboard/src/i18n/locales/hi.json
@@ -1045,7 +1045,7 @@
"copy": "कॉपी करें",
"copied": "कॉपी किया गया",
"checkedAt": "जाँच का समय",
- "openTester": "संदेश परीक्षक में खोलें"
+ "openTester": "संदेश परीक्षक पर जाएँ"
},
"recent": {
"title": "हाल की जाँचें",
diff --git a/dashboard/src/i18n/locales/id.json b/dashboard/src/i18n/locales/id.json
index d844c657d..890ebca23 100644
--- a/dashboard/src/i18n/locales/id.json
+++ b/dashboard/src/i18n/locales/id.json
@@ -1045,7 +1045,7 @@
"copy": "Salin",
"copied": "Tersalin",
"checkedAt": "Diperiksa Pada",
- "openTester": "Buka di Penguji Pesan"
+ "openTester": "Buka Penguji Pesan"
},
"recent": {
"title": "Pemeriksaan Terbaru",
diff --git a/dashboard/src/i18n/locales/it.json b/dashboard/src/i18n/locales/it.json
index 1e30e3c91..7f2607857 100644
--- a/dashboard/src/i18n/locales/it.json
+++ b/dashboard/src/i18n/locales/it.json
@@ -1051,7 +1051,7 @@
"copy": "Copia",
"copied": "Copiato",
"checkedAt": "Verificato alle",
- "openTester": "Apri in Messaggio di prova"
+ "openTester": "Vai a Messaggio di prova"
},
"recent": {
"title": "Verifiche recenti",
diff --git a/dashboard/src/i18n/locales/ko.json b/dashboard/src/i18n/locales/ko.json
index a9eba6d96..10f6b6a3d 100644
--- a/dashboard/src/i18n/locales/ko.json
+++ b/dashboard/src/i18n/locales/ko.json
@@ -1045,7 +1045,7 @@
"copy": "복사",
"copied": "복사됨",
"checkedAt": "확인 시각",
- "openTester": "메시지 테스터에서 열기"
+ "openTester": "메시지 테스터로 이동"
},
"recent": {
"title": "최근 확인 기록",
diff --git a/dashboard/src/i18n/locales/pt-BR.json b/dashboard/src/i18n/locales/pt-BR.json
index cb60ef793..5ca93e78f 100644
--- a/dashboard/src/i18n/locales/pt-BR.json
+++ b/dashboard/src/i18n/locales/pt-BR.json
@@ -1051,7 +1051,7 @@
"copy": "Copiar",
"copied": "Copiado",
"checkedAt": "Hora da verificação",
- "openTester": "Abrir no testador de mensagens"
+ "openTester": "Ir para o testador de mensagens"
},
"recent": {
"title": "Verificações recentes",
diff --git a/dashboard/src/i18n/locales/te.json b/dashboard/src/i18n/locales/te.json
index aea8d7735..b0efacec6 100644
--- a/dashboard/src/i18n/locales/te.json
+++ b/dashboard/src/i18n/locales/te.json
@@ -1045,7 +1045,7 @@
"copy": "కాపీ చేయి",
"copied": "కాపీ అయింది",
"checkedAt": "తనిఖీ చేసిన సమయం",
- "openTester": "మెసేజ్ టెస్టర్‌లో తెరవండి"
+ "openTester": "మెసేజ్ టెస్టర్‌కు వెళ్లండి"
},
"recent": {
"title": "ఇటీవలి తనిఖీలు",
diff --git a/dashboard/src/i18n/locales/tr.json b/dashboard/src/i18n/locales/tr.json
index 00b8f6c4a..8a81778e4 100644
--- a/dashboard/src/i18n/locales/tr.json
+++ b/dashboard/src/i18n/locales/tr.json
@@ -1045,7 +1045,7 @@
"copy": "Kopyala",
"copied": "Kopyalandı",
"checkedAt": "Kontrol Saati",
- "openTester": "Mesaj Test Aracı'nda Aç"
+ "openTester": "Mesaj Test Aracı'na git"
},
"recent": {
"title": "Son Kontroller",
diff --git a/dashboard/src/i18n/locales/zh-CN.json b/dashboard/src/i18n/locales/zh-CN.json
index 3ddbbe645..6b20a5a56 100644
--- a/dashboard/src/i18n/locales/zh-CN.json
+++ b/dashboard/src/i18n/locales/zh-CN.json
@@ -1045,7 +1045,7 @@
"copy": "复制",
"copied": "已复制",
"checkedAt": "检查时间",
- "openTester": "在消息测试器中打开"
+ "openTester": "前往消息测试器"
},
"recent": {
"title": "最近检查记录",
diff --git a/dashboard/src/i18n/locales/zh-HK.json b/dashboard/src/i18n/locales/zh-HK.json
index af62de410..6cea72c7b 100644
--- a/dashboard/src/i18n/locales/zh-HK.json
+++ b/dashboard/src/i18n/locales/zh-HK.json
@@ -1045,7 +1045,7 @@
"copy": "複製",
"copied": "已複製",
"checkedAt": "檢查時間",
- "openTester": "在訊息測試器中開啟"
+ "openTester": "前往訊息測試器"
},
"recent": {
"title": "最近檢查記錄",
diff --git a/dashboard/src/pages/NumberChecker.test.ts b/dashboard/src/pages/NumberChecker.test.ts
index ebba3f755..5145ae583 100644
--- a/dashboard/src/pages/NumberChecker.test.ts
+++ b/dashboard/src/pages/NumberChecker.test.ts
@@ -272,6 +272,16 @@ test('NumberChecker: both result tables sit in a scroll container, so a narrow c
assert.equal(container.querySelector('.nc-history-table')?.parentElement?.className, 'nc-table-wrap');
});
+test('NumberChecker: the Message Tester button reads as a plain link, because it passes no number along', async () => {
+ stubLookups(registered);
+ renderComponent();
+ await rtl.screen.findByRole('option', { name: /Primary Session/ });
+ rtl.fireEvent.change(rtl.screen.getByPlaceholderText(/9876543210/), { target: { value: '919876543210' } });
+ rtl.fireEvent.click(rtl.screen.getByRole('button', { name: 'Check' }));
+ await rtl.screen.findByText('Registered', { selector: '.nc-status-badge' });
+ assert.ok(rtl.screen.getByRole('button', { name: 'Go to Message Tester' }));
+});
+
test('NumberChecker: viewers cannot start single or bulk lookups, including with Enter', async () => {
const lookups: string[] = [];
globalThis.fetch = ((input: RequestInfo | URL) => {