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

Fix XPath indices to be 1-based instead of 0-based #1191

Merged
merged 2 commits into from
May 1, 2024

Conversation

westonruter
Copy link
Member

@westonruter westonruter commented Apr 30, 2024

Fixes #1124

The test changes are pretty much all just increasing the XPath indices to start from 1 instead of 0.

Also, aa7404d fixes some typing issues with \OD_Optimization_Tests::get_validated_url_metric(). Moved to #1195.

@westonruter westonruter added [Type] Bug An existing feature is broken [Plugin] Optimization Detective Issues for the Optimization Detective plugin labels Apr 30, 2024
@westonruter westonruter requested a review from felixarntz as a code owner April 30, 2024 17:47
Copy link

github-actions bot commented Apr 30, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: westonruter <[email protected]>
Co-authored-by: swissspidy <[email protected]>
Co-authored-by: thelovekesh <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

… fix/xpath-starting-number

* 'trunk' of https://github.com/WordPress/performance:
  Fix minor issues
  Enqueue a11y script
  Add a11y message
  Apply suggestions from code review
  Add empty line
  Add Progress indicator
  Make variable name more explicit
  Facilitate embedding Optimization Detective in other plugins/themes
@westonruter westonruter merged commit 58a4494 into trunk May 1, 2024
23 checks passed
@westonruter westonruter deleted the fix/xpath-starting-number branch May 1, 2024 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Optimization Detective Issues for the Optimization Detective plugin [Type] Bug An existing feature is broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XPaths in Optimization Detective are invalid due to being zero-based instead of one-based
3 participants