Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tables not being printed in steps/logs #782

Closed
cos-p opened this issue Jul 30, 2022 · 4 comments
Closed

Tables not being printed in steps/logs #782

cos-p opened this issue Jul 30, 2022 · 4 comments

Comments

@cos-p
Copy link

cos-p commented Jul 30, 2022

Current behavior

When using a table, the contents do not get printed in the steps output.

image

Desired behavior

The steps log should include the table/contents.

Test code to reproduce

Feature file (tried with and without table headers and it makes no difference)
Rule: Correctly placed letters appear in green
Background:
Given the target word is:
| B | L | A | N | D |

Scenario: Correctly placed letters
  When the player enters the following letters:
    | first | second | third | fourth | fifth |
    | P | R | I | N | T |
  Then the squares should be colored as follows:
    | - | - | - | * | - |

Step code:
When("the player enters the following letters:", (table) => {
table.hashes().forEach((row) => {
cy.log('aaaaaaaaaaaaaaaaaaaaaaaaa', row.first, row.second, row.third, row.fourth, row.fifth)

})

});

Versions

  • Cypress version:10.3.0
  • Preprocessor version:11.4.0
  • Node version:v14.16.0
@badeball
Copy link
Owner

badeball commented Aug 1, 2022

This goes for doc strings as well.

@nilgaar
Copy link

nilgaar commented Dec 4, 2022

I can take care of this one @badeball , will submit the PR this week.

@nilgaar
Copy link

nilgaar commented Dec 10, 2022

Hi @badeball .
atm, fixing this issue requires this to be solved: cypress-io/cypress#24964. I'll keep an eye on it and, if the fix takes more than one month, I'll try to fix it myself.

@nilgaar nilgaar mentioned this issue Jan 30, 2023
@badeball
Copy link
Owner

This has been fixed in v7.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants