DIK-57: подсказка у расстояния без упоминания района
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1766186c72
commit
693c77aee9
@ -135,3 +135,11 @@ test("Сценарий: главная без районов, подсказка
|
||||
}
|
||||
assert.match(app, /msg\("listPreparing"\)/);
|
||||
});
|
||||
|
||||
test("Сценарий: подсказки у расстояния и переключателя не отсылают к району (DIK-57)", () => {
|
||||
const bad = { ru: /район/i, kk: /аудан/i, en: /district/i };
|
||||
for (const l of ["ru", "kk", "en"]) {
|
||||
const d = JSON.parse(fs.readFileSync(`public/i18n/${l}.json`, "utf8"));
|
||||
for (const k of ["distNeedPlace", "filterNeedPlace"].filter((x) => d[x])) assert.doesNotMatch(d[k], bad[l], `${l}.${k}`);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user