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

Feature Request: Multi-line test name in report #117

Open
RonanCodes opened this issue Nov 9, 2018 · 3 comments
Open

Feature Request: Multi-line test name in report #117

RonanCodes opened this issue Nov 9, 2018 · 3 comments
Labels

Comments

@RonanCodes
Copy link

The newline character: \n shows in the terminal but not in the e2e report.

My test:

        fit('Given I open a tab\nThen the header is correct\nAnd the background is blue', () => {
            ...
        });

It would be great if we could add formatting options into the UI.

@RonanCodes
Copy link
Author

Any update on this?
Essentially when we generate the report we want to turn the \n into a new line instead of just removing it.

@miller45
Copy link
Collaborator

miller45 commented Aug 16, 2019

@RonanC
The addition of the following inline css to the configuration will format newline characters to line wraps in the report:

new HtmlReporter({
            baseDirectory: 'reports-tmp',
            customCssInline:`
.mediumColumn:not([ng-class]) {
    white-space: pre-wrap;
}
`}
)

@miller45
Copy link
Collaborator

@RonanC I just tried it out: It seems to works also for specs or testcases (now) when you add more css.
It is described here in the wiki under inebreaks in specs or testcase

@miller45 miller45 pinned this issue Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants