Skip to content

Commit

Permalink
Update TokenNewWiew
Browse files Browse the repository at this point in the history
Fix for all tests in ui/tokens
  • Loading branch information
mastastny committed Dec 18, 2024
1 parent 4677976 commit 3dc9e6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testsuite/ui/views/admin/settings/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 3dc9e6d

Please sign in to comment.