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

refactor to new style and rename all conditions inside match.py so match can be fully used instead be + have #530

Open
yashaka opened this issue May 22, 2024 · 1 comment

Comments

@yashaka
Copy link
Owner

yashaka commented May 22, 2024

subj

@yashaka yashaka changed the title rename all conditions inside match.py so match can be fully used instead be + have refactor to new style and rename all conditions inside match.py so match can be fully used instead be + have Jun 22, 2024
@yashaka
Copy link
Owner Author

yashaka commented Jun 22, 2024

This issue was renamed, because it's tightly coupled with complete refactoring of conditions...

This refactoring was actually started from commits from Commits on May 29, 2024 til Commits on Jun 22, 2024. And from now on, I will try to mark further commits as related to this ticket

yashaka added a commit that referenced this issue Jul 7, 2024
... be.present_in_dom and be.visible (add _describe_actual_result), have.text and have.exact_text (reuse _ElementHasSomethingSupportingIgnoreCase), have.texts and have.exact_texts (reuse _CollectionHasSomethingSupportingIgnoreCase), have.tag and have.tag_containing,

* add _describe_actual_result support to Condition, Match, ...
* add some new TODOs and todos
  * see at least changelog for TODOs

NEW:
+ be._empty 4-in-1 experimental condition (over deprecated be.empty collection condition)
github-actions bot added a commit that referenced this issue Jul 7, 2024
... be.present_in_dom and be.visible (add _describe_actual_result), have.text and have.exact_text (reuse _ElementHasSomethingSupportingIgnoreCase), have.texts and have.exact_texts (reuse _CollectionHasSomethingSupportingIgnoreCase), have.tag and have.tag_containing,

* add _describe_actual_result support to Condition, Match, ...
* add some new TODOs and todos
  * see at least changelog for TODOs

NEW:
+ be._empty 4-in-1 experimental condition (over deprecated be.empty collection condition)
yashaka added a commit that referenced this issue Jul 8, 2024
... to Condition, Match, Query, Command. Now it's a positional only. It's kind of a prep step to potential renaming it to name.

Also leave some new TODOs on Condition/Match args design. And made tiny fixes in Condition docstring examples.
yashaka added a commit that referenced this issue Jul 9, 2024
... in Condition, Match, Query, Command and co.
github-actions bot added a commit that referenced this issue Jul 9, 2024
... in Condition, Match, Query, Command and co.
yashaka added a commit that referenced this issue Jul 9, 2024
condition aliases and new conditions:
- collection conditions
  - `have.size(int).or_more` as alias to `have.size_greater_than_or_equal(int)`
  - `have.size(int).or_less` as alias to `have.size_less_than_or_equal(int)`
- element conditions
  - `have.size(dict_of_element_size)`
- browser conditions
  - `have.size(dict_of_browser_size)`

add
- config._match_only_visible_elements_texts
  - `True` by default
yashaka added a commit that referenced this issue Jul 10, 2024
+
TEST: finalize disabling have size test for elements
yashaka added a commit that referenced this issue Jul 11, 2024
github-actions bot added a commit that referenced this issue Jul 11, 2024
yashaka added a commit that referenced this issue Jul 11, 2024
TODOS in changelog:
* should we support ignorecase on asserting urls too?
* should we make ingorecase optionally default for all conditions supporting it?
yashaka added a commit that referenced this issue Jul 14, 2024
[#537] TEST: cover value like conditions with ignore_case tests
github-actions bot added a commit that referenced this issue Jul 14, 2024
[#537] TEST: cover value like conditions with ignore_case tests
yashaka added a commit that referenced this issue Jul 15, 2024
... to improve readability in context of match.* phrasing
github-actions bot added a commit that referenced this issue Jul 15, 2024
... to improve readability in context of match.* phrasing
yashaka added a commit that referenced this issue Jul 15, 2024
[#537] DOCS: log todo on potential property based impl. (similar to .ignore_case prop)
yashaka added a commit that referenced this issue Jul 17, 2024
... by adding missed AssertionError handling
yashaka added a commit that referenced this issue Jul 17, 2024
... to config._match_ignoring_case because browser.with(_ignore_case=True).element(by.text(...)) will confuse...
yashaka added a commit that referenced this issue Jul 19, 2024
…l + ...

... DOCS: update condition.py docstrings guides
yashaka added a commit that referenced this issue Jul 19, 2024
... in case of custom falsy_exceptions set for Condition
yashaka added a commit that referenced this issue Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant