8000 Combine Shadow DOM sources into a single attachment in the report by vkepin · Pull Request #5433 · vividus-framework/vividus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

vkepin
Copy link
Contributor
@vkepin vkepin commented Oct 11, 2024

No description provided.

@vkepin vkepin requested a review from a team as a code owner October 11, 2024 10:19
@vkepin vkepin force-pushed the shadow_dom_attachement branch from 8d4ac3e to d2c620d Compare October 11, 2024 10:38
Copy link
codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.65%. Comparing base (b7c650f) to head (05f982c).
Report is 7 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@@ -48,6 +49,10 @@ public void onAssertionFailure(AssertionFailedEvent event)
if (publishSourceOnFailure && webDriverProvider.isWebDriverInitialized())
{
contextSourceCodeProvider.getSourceCode().forEach(this::publishSource);
if (publishShadowDomSourceOnFailure)
{
publishShadowDomSource();
Copy link
Collaborator

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

@vkepin vkepin force-pushed the shadow_dom_attachement branch from 410efec to 01bcdda Compare October 16, 2024 15:47
< 8000 div class="js-timeline-item js-timeline-progressive-focus-container" data-gid="PRR_kwDOC4JKLs6NkwDf">
@vkepin vkepin force-pushed the shadow_dom_attachement branch from 01bcdda to c1e967a Compare October 17, 2024 15:25
import org.springframework.stereotype.Component;
import org.vividus.condition.AbstractBooleanPropertyCondition;

@Component
Copy link
Collaborator

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
Copy link
Collaborator

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;
Copy link
Collaborator

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

@vkepin vkepin force-pushed the shadow_dom_attachement branch from c1e967a to fb0f3ed Compare October 21, 2024 07:57
@@ -23,4 +23,6 @@ public interface ContextSourceCodeProvider
String APPLICATION_SOURCE_CODE = "Application source code";

Map<String, String> getSourceCode();

Map<String, String> getShadowDomSourceCode();
Copy link
Collaborator

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"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use bootstrap 5

@vkepin vkepin force-pushed the shadow_dom_attachement branch from f45da12 to 31a2449 Compare October 23, 2024 12:02
@vkepin vkepin force-pushed the shadow_dom_attachement branch from 31a2449 to 05f982c Compare October 23, 2024 12:07
@valfirst valfirst merged commit 1c50264 into vividus-framework:master Oct 24, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants
0