Skip to content

Commit

Permalink
amending authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
omehes committed Jun 18, 2024
1 parent e12ea61 commit f2831dc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
9 changes: 8 additions & 1 deletion tests/ui/test_readme_validate_other_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,18 @@ def test_readme_validate_other_features(

github_login_window.click(sign_in_button_selector)

if home.continue_with_github_is_visible:
home.click_continue_with_github_button()

if home.gitpod_user_dropdown.inner_text() != "0 openstax":
home.click_gitpod_user_dropdown()
home.click_gitpod_user_selector()

home.click_workspace_continue_button()
if home.continue_with_github_is_visible:
home.click_continue_with_github_button()

if home.continue_with_workspace_is_visible:
home.click_workspace_continue_button()

# THEN: openstax extension launches and icon appears
assert home.openstax_icon_is_visible
Expand Down
10 changes: 8 additions & 2 deletions tests/ui/test_toc_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def test_toc_editor(chrome_page, github_user, github_password, gitpod_repo_url):
chrome_page.goto(gitpod_repo_url)
home = HomePoet(chrome_page)

# WHEN: login into openstax/osbooks-otto-book repo
if home.continue_with_github_is_visible:
home.click_continue_with_github_button()

Expand All @@ -24,11 +23,18 @@ def test_toc_editor(chrome_page, github_user, github_password, gitpod_repo_url):

github_login_window.click(sign_in_button_selector)

if home.continue_with_github_is_visible:
home.click_continue_with_github_button()

if home.gitpod_user_dropdown.inner_text() != "0 openstax":
home.click_gitpod_user_dropdown()
home.click_gitpod_user_selector()

home.click_workspace_continue_button()
if home.continue_with_github_is_visible:
home.click_continue_with_github_button()

if home.continue_with_workspace_is_visible:
home.click_workspace_continue_button()

# THEN: openstax extension launches and icon appears
assert home.openstax_icon_is_visible
Expand Down

0 comments on commit f2831dc

Please sign in to comment.