Skip to content

Commit 2b56774

Browse files
authored
Fix the Azure authentication test (#6351)
1 parent c47d645 commit 2b56774

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ jobs:
191191
fail-fast: false
192192
matrix:
193193
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
194-
timeout-minutes: 60
194+
timeout-minutes: 120
195195
defaults:
196196
run:
197197
shell: bash -el {0}

panel/tests/ui/test_auth.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ def test_azure_oauth(py_file, page):
102102
expect(page.locator('input[type="submit"]')).to_have_attribute('value', 'Sign in')
103103
page.locator('input[type="password"]').fill(azure_password)
104104
page.locator('input[type="submit"]').click(force=True)
105-
page.locator('input[type="submit"]').click(force=True)
106-
105+
page.locator('button[type="submit"][id="acceptButton"]').click(force=True) # Stay signed in
107106
expect(page.locator('.markdown')).to_have_text(f'live.com#{azure_user}', timeout=10000)
108107

109108

0 commit comments

Comments
 (0)