Commit 0ef0f21 1 parent b8ebb31 commit 0ef0f21 Copy full SHA for 0ef0f21
File tree 1 file changed +3
-3
lines changed
src/open_inwoner/search/tests
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -301,11 +301,11 @@ def test_search_with_filters(self):
301
301
expect (checkbox ).to_be_enabled ()
302
302
expect (checkbox ).not_to_be_checked ()
303
303
304
- def _click_checkbox_for_name (page , name ):
304
+ def _click_checkbox_for_name (page = page , name = "" ):
305
305
# first open de <details> through the summary
306
- page .locator (".filter__title " ).filter (
306
+ page .locator (".filter " ).filter (
307
307
has = page .get_by_role ("checkbox" , name = name )
308
- ).click ()
308
+ ).locator ( ".filter__title" ). click ()
309
309
# our checkbox widget hides the <input> element and styles the <label> and a pseudo-element
310
310
# this a problem for playwright accessibility, so we find the label for the checkbox and click on the label like a user would
311
311
page .locator (".checkbox" ).filter (
You can’t perform that action at this time.
0 commit comments