Open
Conversation
Hsilgos
reviewed
Oct 23, 2022
|
|
||
| .activity.activity-assertion-failure > p { | ||
| color: red; | ||
| white-space: pre-wrap; |
There was a problem hiding this comment.
As I wrote in the ticket this approach is good workaround, but not perfect anough.
I think that it's better to do the following thing:
Create another style with white-space:
.activity.activity-assertion-failure > p {
color: red;
}
.activity.activity-assertion-failure-details > p {
white-space: pre-wrap;
}
And add this style only to the row with details. For example pice from our generated HTML:
</div><div class="activity activity-user-created activity-assertion-failure ">
<p class="list-item">
<span style="margin-left: 20px" class="padding"></span>
<span class="icon left drop-down-icon" onclick="toggle(this, 'C8AD9FF1-F9DC-4052-A00E-411217BAF33A')"></span>
Then SDK engine is created successfully (-1666537987.83s)
<span class="icon paperclip-icon" style="display: none"></span>
</p>
<div id="attachments-C8AD9FF1-F9DC-4052-A00E-411217BAF33A" class="attachments">
</div>
<div id="activities-C8AD9FF1-F9DC-4052-A00E-411217BAF33A" class="sub-activities">
<div class="activity activity-assertion-failure activity-assertion-failure-details no-drop-down">
<p class="list-item">
<span style="margin-left: 48px" class="padding"></span>
<span class="icon left drop-down-icon" onclick="toggle(this, '47F4ACD1-F2CE-4CDD-BF08-21A61B037260')"></span>
Assertion Failure at sdkengine.feature:56:
XCTAssertNotNil failed - No exception is expected too be thrown (0.00s)
more of text, etc...
<span class="icon paperclip-icon" style="display: none"></span>
</p>
<div id="attachments-47F4ACD1-F2CE-4CDD-BF08-21A61B037260" class="attachments">
|
Kudos, SonarCloud Quality Gate passed!
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








Suggested change from @Hsilgos
#155