Add Playwright e2e coverage and Node 20 pin
This commit is contained in:
20
frontend/e2e/profile.spec.ts
Normal file
20
frontend/e2e/profile.spec.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { expect, test } from '@playwright/test'
|
||||
import { uniqueName } from './helpers/api'
|
||||
|
||||
test.describe('profile settings smoke tests', () => {
|
||||
test('can update the job title', async ({ page }) => {
|
||||
const jobTitle = uniqueName('Playwright Engineer')
|
||||
|
||||
await page.goto('/account/profile')
|
||||
|
||||
await expect(
|
||||
page.getByRole('heading', { name: 'Profile Settings' }),
|
||||
).toBeVisible()
|
||||
|
||||
await page.getByLabel('Job Title').fill(jobTitle)
|
||||
await page.getByRole('button', { name: 'Save Changes' }).click()
|
||||
|
||||
await expect(page.getByText('Profile updated')).toBeVisible()
|
||||
await expect(page.getByLabel('Job Title')).toHaveValue(jobTitle)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user