diff --git a/testsuite/ui/views/admin/settings/tokens.py b/testsuite/ui/views/admin/settings/tokens.py index de60513e..4eb27c7c 100644 --- a/testsuite/ui/views/admin/settings/tokens.py +++ b/testsuite/ui/views/admin/settings/tokens.py @@ -8,7 +8,7 @@ from testsuite.ui.navigation import step from testsuite.ui.views.admin.settings import BaseSettingsView -from testsuite.ui.widgets import CheckBoxGroup, ThreescaleDropdown +from testsuite.ui.widgets import ThreescaleDropdown, PfCheckBoxGroup from testsuite.ui.widgets.buttons import ThreescaleSubmitButton @@ -48,7 +48,9 @@ class TokenNewView(BaseSettingsView): path_pattern = "/p/admin/user/access_tokens/new" name = TextInput(id="access_token_name") - scopes = CheckBoxGroup("//*[@id='access_token_scopes_input']") + scopes = PfCheckBoxGroup( + '//*[@id="new_access_token"]/div[@class="pf-c-form__group"][.//span[contains(normalize-space(.), "Scopes")]]' + ) permissions = ThreescaleDropdown("//*[@id='access_token_permission']") create_button = ThreescaleSubmitButton() token_value = Text(".//div/dt/span[text()='Token']/ancestor::dt/following-sibling::dd")