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