-
-
Notifications
You must be signed in to change notification settings - Fork 88
Combine Shadow DOM sources into a single attachment in the report #5433
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
Combine Shadow DOM sources into a single attachment in the report #5433
Conversation
8d4ac3e
to
d2c620d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5433 +/- ##
=========================================
Coverage 97.65% 97.65%
- Complexity 7027 7042 +15
=========================================
Files 971 976 +5
Lines 20405 20441 +36
Branches 1336 1341 +5
=========================================
+ Hits 19926 19962 +36
Misses 368 368
Partials 111 111 ☔ View full report in Codecov by Sentry. |
@@ -48,6 +49,10 @@ public void onAssertionFailure(AssertionFailedEvent event) | |||
if (publishSourceOnFailure && webDriverProvider.isWebDriverInitialized()) | |||
{ | |||
contextSourceCodeProvider.getSourceCode().forEach(this::publishSource); | |||
if (publishShadowDomSourceOnFailure) | |||
{ | |||
publishShadowDomSource(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generic SourceCodePublishingOnFailureListener
should know nothing about Shadow DOM, because this class is used in both web-app and mobile-app plugins
410efec
to
01bcdda
Compare
vividus-engine/src/main/java/org/vividus/condition/AbstractBooleanPropertyCondition.java
Show resolved
Hide resolved
01bcdda
to
c1e967a
Compare
import org.springframework.stereotype.Component; | ||
import org.vividus.condition.AbstractBooleanPropertyCondition; | ||
|
||
@Component |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this annotation needed?
import org.springframework.stereotype.Component; | ||
import org.vividus.condition.AbstractBooleanPropertyCondition; | ||
|
||
@Component |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it needed?
private boolean publishSourceOnFailure; | ||
private String format; | ||
@Autowired | ||
private String sourceCodeAttachmentFormat; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are lucky, because there is only one bean of type String
c1e967a
to
fb0f3ed
Compare
@@ -23,4 +23,6 @@ public interface ContextSourceCodeProvider | |||
String APPLICATION_SOURCE_CODE = "Application source code"; | |||
|
|||
Map<String, String> getSourceCode(); | |||
|
|||
Map<String, String> getShadowDomSourceCode(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is applicable for web only, thus we should introduce it in vividus-extension-web-app
<meta charset="utf-8"> | ||
<title>Application source code</title> | ||
<link rel="stylesheet" href="../../styles.css"/> | ||
<link rel="stylesheet" href="../../webjars/bootstrap/3.4.1/css/bootstrap.min.css"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use bootstrap 5
f45da12
to
31a2449
Compare
31a2449
to
05f982c
Compare
No description provided.