hexlet-basics / hexlet-basics/exercises-html

Проблема с тестом в уроке 12 по HTML

Open
#193 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
18
Forks
111
PR merge metrics
No merged PRs in 30d

Description

При проверке правильный вариант считается неверным, так как тест считает, что ячеек больше, чем нужно. Но тест проходится, если я убираю или комментирую вторую ячейку второй строки (12 строка кода). Скорее всего, в тесте нужно изменить аргумент в функции expect(tds).to.have.length(2); на 3 (8 строка кода в тесте).

Screenshot 2023-11-17 at 8 44 48 PM Screenshot 2023-11-17 at 8 44 59 PM Screenshot 2023-11-17 at 8 45 37 PM

На скриншотах показано решение задачи, ошибка при таком решении и сравнение с решением учителя

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the lesson 12 HTML test and inspect the assertion on line 8, expect(tds).to.have.length(2). Compare it with the example solution, where the second row contains two cells. Update the expected count to match the valid exercise and rerun the lesson test to confirm it passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
testing, web-dev
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.