Shelex / cypress-allure-plugin

cypress plugin to use allure reporter api in tests

Home Page:https://shelex.github.io/cypress-allure-plugin-example/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cucumber data table not displayed in the Allure report

youvegotnigel opened this issue · comments

commented

Describe the bug
Given when I execute a scenario as below:

image

Since I have used a cucumber data table in the step;

    When A user provides incorrect credentials
        | username | password |
        | <un>     | <pw>     |

This should be visible in the allure report as well.

But the cucumber data table is not displayed.

image

To Reproduce
Steps to reproduce the behavior:

  1. Clone this repo https://github.com/youvegotnigel/cypress-cucumber-allure-demo
  2. Execute below commands
npm i
npm run cy:run
npm run allure:report
  1. Open the index.html file in allure-repot folder via Live Sever.

Expected behavior
Cucumber table should be displayed like this
image

Environment (please complete the following information):

  • Node version: 16.15.0
  • Cypress version: 10.7
  • OS: Windows 10
 "devDependencies": {
    "@badeball/cypress-cucumber-preprocessor": "^12.1.0",
    "@bahmutov/cypress-esbuild-preprocessor": "^2.1.3",
    "cypress": "^10.7.0",
    "esbuild": "^0.14.48",
    "multiple-cucumber-html-reporter": "^2.0.0",
    "@shelex/cypress-allure-plugin": "^2.31.0",
    "cypress-xpath": "^2.0.1",
    "moment": "^2.29.4",
    "moment-timezone": "^0.5.37"
  }

Additional context
Add any other context about the problem here.
I have previously used allure reports with cucumber-java, and have observed that data tables can be displayed in allure as below:

Test Scenario:

image

Allure Report:
image

Is it possible to add this functionality to this plugin as well?

+1

+1
currently I see my datatables like this:
image

+1 currently I see my datatables like this: image

Hi,

I am running into the same issue.

This is my dependencies:

"devDependencies": {
    "@badeball/cypress-cucumber-preprocessor": "17.2.1",
    "@cypress/browserify-preprocessor": "3.0.2",
    "@cypress/skip-test": "2.6.1",
    "@faker-js/faker": "7.5.0",
    "@shelex/cypress-allure-plugin": "2.40.0",
    "@types/chai-subset": "1.3.3",
    "@types/luxon": "2.3.2",
    "@types/node": "^12.20.37",
    "allure-commandline": "2.17.2",
...

If the table shows correct format, it would be very helpful for us to replicate an issue if the test failed.