Files
resolutionflow/frontend/e2e/profile.spec.ts
2026-03-16 02:29:22 -04:00

21 lines
669 B
TypeScript

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)
})
})