SAML SSO config toggle buttons change state on navigating to the Settings page
Summary
When a user navigates to the SAML SSO Groups settings page when "Enforce SSO-only authentication for this group." and "Enforce users to have dedicated group managed accounts for this group" is off, the toggle button for these settings initially show as ON before turning off.
This is causing the e2e tests to fail. For example if the tests want to turn a setting on, they find that it is on already and proceed causing the test to fail.
Steps to reproduce
- Enable Group SAML for your GitLab instance
- Enable these feature flags:
enforced_sso group_managed_accounts sign_up_on_sso
- Create a group and navigate to its SAML SSO Setting.
- Enable SAML authentication for this group.
- Navigate away and return to the group's SAML SSO Setting
Note that the "Enforce SSO-only authentication for this group." and "Enforce users to have dedicated group managed accounts for this group" toggle buttons are ON and they turn off.
What is the current bug behavior?
"Enforce SSO-only authentication for this group." and "Enforce users to have dedicated group managed accounts for this group" toggle buttons incorrectly reflect their original state initially when the user navigates to group's SAML SSO Setting page.
What is the expected correct behavior?
"Enforce SSO-only authentication for this group." and "Enforce users to have dedicated group managed accounts for this group" toggle buttons correctly reflect their original state initially when the user navigates to group's SAML SSO Setting page.