File size: 646 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { test } from '@playwright/test'

test.describe.configure({ mode: 'parallel' })

// test logging in with OIDC
test('OIDC Login', async ({ page }) => {
  await page.goto('./profile')

  await page.click('button[type=submit] >> "Login with OIDC"')

  // ensure we have an h1 with jane.doe
  await page.waitForSelector('h1 >> "jane.doe"')
})
// test logging in with OIDC
test('OIDC Login (fallback public url)', async ({ page }) => {
  await page.goto('http://127.0.0.1:6120/profile')

  await page.click('button[type=submit] >> "Login with OIDC"')

  // ensure we have an h1 with jane.doe
  await page.waitForSelector('h1 >> "jane.doe"')
})