WTC-26: тест под новое условие подсказки
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e438552a63
commit
7b52cbe9ca
@ -53,7 +53,7 @@ test("Сценарий: Своё блюдо в списке", () => {
|
|||||||
assert.equal(findRecipe("Мамин пирог"), null);
|
assert.equal(findRecipe("Мамин пирог"), null);
|
||||||
assert.match(messages.ru.noRecipeHint, /«Рецепта нет»/);
|
assert.match(messages.ru.noRecipeHint, /«Рецепта нет»/);
|
||||||
assert.ok(messages.ru.noRecipeHint.includes(messages.ru.noRecipe));
|
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");
|
const html = read("index.html");
|
||||||
assert.ok(html.indexOf('id="list"') < html.indexOf('id="noRecipeHint"'));
|
assert.ok(html.indexOf('id="list"') < html.indexOf('id="noRecipeHint"'));
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user