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

feat: rework "containing" selectors via addition of remaining attribute operators #1786

Merged

Conversation

joelpop
Copy link
Collaborator

@joelpop joelpop commented Apr 16, 2024

Description

Refactored name of "xContaining" attribute selector methods to "xContainingToken".

Added true "xContaining" attribute selector methods that match on substrings instead of on tokens.

Added remaining attribute matching operators and a corresponding selector method to utilize them. Refactored existing attribute-based selector methods to use this method.

Fixes #1554

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/guide/contributing/overview/
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.

Additional for Feature type of change

  • Enhancement / new feature was discussed in a corresponding GitHub issue and Acceptance Criteria were created.

Changed name of "containing" attribute selector methods from "xContains" to "xContainsToken".

Added true "containing" attribute selector methods.
Deprecated for removal obsolete AttributeMatch constructor.

Fixed various Javadoc comments.
…Query-withAttributeContaining-operator

# Conflicts:
#	vaadin-testbench-core-junit5/src/test/java/com/vaadin/testbench/ElementQueryTest.java
#	vaadin-testbench-core/src/test/java/com/vaadin/testbench/ElementQueryTest.java
#	vaadin-testbench-shared/src/main/java/com/vaadin/testbench/ElementQuery.java
@joelpop joelpop requested a review from mcollovati April 19, 2024 23:32
@joelpop joelpop requested a review from mcollovati April 23, 2024 21:21
@mcollovati mcollovati merged commit 971421a into main Apr 24, 2024
2 checks passed
@mcollovati mcollovati deleted the feature/#1554-ElementQuery-withAttributeContaining-operator branch April 24, 2024 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ElementQuery - attributeContains rework
2 participants