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

Long values inside custom data break layout #289

Open
ahelmel opened this issue Oct 25, 2023 · 0 comments
Open

Long values inside custom data break layout #289

ahelmel opened this issue Oct 25, 2023 · 0 comments

Comments

@ahelmel
Copy link

ahelmel commented Oct 25, 2023

Environment (please complete the following information):

  • multiple-cucumber-html-reporter: 3.3.0
  • Node.js version: v18.18.0
  • NPM version: 9.8.1
  • Platform name and version: Linux
  • Cucumber version: 9.1.0

Config of multiple-cucumber-html-reporter

report.generate({
  jsonDir: `${reportsPath}/json`,
  reportPath: `${reportsPath}/html-report`,
  displayDuration: true,
  durationInMS: true,
  pageTitle: 'My App',
  reportName: 'My App,
  customData: {
     title: 'Run Info',
     data: [
       { label: 'Stage', value: 'Development' },
       { label: 'Branch Name', value: 'feature/XXX-123_some-very-long-name-for-a-feature-branch' },
       { label: 'App Version', value: '1.0' },
       { label: 'Node Version', value: '18.12.0' },
       { label: 'Cypress Version', value: '13.3.1' },
       { label: 'Execution Start Time', value: '25.10.2023, 09:26:26' },
       { label: 'Execution End Time', value: '25.10.2023, 09:30:12' },
       { label: 'Execution Duration', value: '4 Minuten' },
     ],
  },
});

Describe the bug
If the value of customData value is too long, then the layout breaks:

  1. There is no horizontal spacing between the customData label and the value, both are very narrow (marked red in the screenshot below)
  2. The customData value is not being truncated with "...", the value goes beyound the right border (marked blue in the screenshot below)

image

I fixed it temporarily in my project by adding a custom CSS-Style, but a fix in the reporter itself would be nice:

image

To Reproduce
Configure the reporter with customData value which is very long, see "Config of multiple-cucumber-html-reporter" section.

Expected behavior

  1. There is enough horizontal spacing between customData label and value column
  2. The customData value should be truncated with "..." if too long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant