WTC-26: тест под новое условие подсказки
All checks were successful
peppa/lint lint: success за 0с
peppa/test test: success за 0с
peppa/build build: success за 0с
ci / checks (pull_request) Successful in 4s
deploy / deploy (pull_request) Successful in 13s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Peppa 2026-11-16 06:29:04 +05:00
parent e438552a63
commit 7b52cbe9ca

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"'));
});