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/fix xpath matcher #555

Merged
merged 6 commits into from
Dec 6, 2019
Merged

Feature/fix xpath matcher #555

merged 6 commits into from
Dec 6, 2019

Conversation

roesslerj
Copy link
Contributor

  • the code follows the Clean Code guidelines.
  • the necessary tests are either created or updated.
  • all status checks (Travis CI, SonarCloud, etc.) pass.
  • your commit history is cleaned up.
  • you updated the changelog.
  • you updated necessary documentation within retest/docs.

@roesslerj roesslerj requested a review from beatngu13 December 5, 2019 16:47
@cla-bot cla-bot bot added the cla-signed label Dec 5, 2019
@beatngu13
Copy link
Contributor

Cool, this partly adresses retest/recheck-web#132 (see retest/recheck-web#132 (comment)).

@@ -26,7 +29,7 @@ public boolean test( final Element element ) {

@Override
public String toString() {
return String.format( ElementXpathMatcherLoader.FORMAT, xpath );
return String.format( ElementXpathMatcherLoader.FORMAT, "/" + xpath );
Copy link
Contributor

Choose a reason for hiding this comment

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

The leading slash is correct for the absolute XPath, but this doesn't correspond to our internal representation I guess? Is this good?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess we should think about changing our internal representation. But this is definitely a separate PR...

@roesslerj roesslerj force-pushed the feature/fix-xpath-matcher branch from 07f2782 to d6d3dd4 Compare December 5, 2019 17:50
@roesslerj roesslerj requested a review from beatngu13 December 5, 2019 17:50
@rebazer rebazer merged commit 6b36a97 into master Dec 6, 2019
@rebazer rebazer deleted the feature/fix-xpath-matcher branch December 6, 2019 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants