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

Convert ZGW registration options to modal + Formik #4607

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,14 @@ def collect_requests(request):
await page.get_by_role(
"combobox", name="Select registration backend"
).select_option(label="ZGW API's")
await page.get_by_label("ZGW API group").select_option(label="Group 1")
await page.get_by_role("button", name="Configure options").click()

config_modal = page.get_by_role("dialog")
await rs_select_option(
config_modal.get_by_role("combobox", name="API group"),
option_label="Group 1",
)
await config_modal.get_by_role("button", name="Save").click()

with phase("Configure upload component"):
await page.get_by_role("tab", name="Steps and fields").click()
Expand All @@ -132,10 +139,14 @@ def collect_requests(request):

with phase("Update the ZGW API group configured"):
await page.get_by_role("tab", name="Registration").click()
await page.get_by_role(
"combobox", name="Select registration backend"
).select_option(label="ZGW API's")
await page.get_by_label("ZGW API group").select_option(label="Group 2")
await page.get_by_role("button", name="Configure options").click()

config_modal = page.get_by_role("dialog")
await rs_select_option(
config_modal.get_by_role("combobox", name="API group"),
option_label="Group 2",
)
await config_modal.get_by_role("button", name="Save").click()

with phase("Reopen the upload component"):
await page.get_by_role("tab", name="Steps and fields").click()
Expand Down
Loading
Loading