WTC-26: подсказка про «Рецепта нет» на пустом экране #26

Merged
peppa-bot merged 4 commits from task/wtc-26 into main 2026-11-16 06:29:18 +05:00
Showing only changes of commit 7b52cbe9ca - Show all commits

View File

@ -53,7 +53,7 @@ test("Сценарий: Своё блюдо в списке", () => {
assert.equal(findRecipe("Мамин пирог"), null);
assert.match(messages.ru.noRecipeHint, /«Рецепта нет»/);
assert.ok(messages.ru.noRecipeHint.includes(messages.ru.noRecipe));
assert.match(read("app.js"), /\$\("noRecipeHint"\)\.hidden = !hasNoRecipe\(state\.dishes, findRecipe\)/);
assert.match(read("app.js"), /\$\("noRecipeHint"\)\.hidden = n !== 0 && !hasNoRecipe\(state\.dishes, findRecipe\)/);
const html = read("index.html");
assert.ok(html.indexOf('id="list"') < html.indexOf('id="noRecipeHint"'));
});