-
Notifications
You must be signed in to change notification settings - Fork 0
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
✨ #635 - feat: method to clear filters #642
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #642 +/- ##
==========================================
+ Coverage 88.16% 89.97% +1.80%
==========================================
Files 210 210
Lines 6043 6116 +73
Branches 639 647 +8
==========================================
+ Hits 5328 5503 +175
+ Misses 715 613 -102
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add a test?
85ddf0d
to
05dd124
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have another look, the dat filters seem broken (and don't reset properly as well), also check my comments.
backend/src/openarchiefbeheer/destruction/tests/e2e/issues/test_635_filters_reset.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, please:
- Introduce an extension of typedfield with an optional key to keep track of the query parameters to (also) clear.
- Make the clear button only appear if the selection is active
- Bonus points: update the test the check if the page is reset
@@ -723,6 +723,14 @@ async def page_should_contain_text(self, page, text, timeout=None): | |||
element = page.locator(f"text={text}") | |||
await expect(element.nth(0)).to_be_visible(timeout=timeout) | |||
|
|||
async def page_should_not_contain_text(self, page, text, timeout=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await self.then.not_.page_should_contain_text(page, text) probably also works
86f4f8e
to
709ecb5
Compare
closes #635