Add Playwright e2e coverage and Node 20 pin

This commit is contained in:
chihlasm
2026-03-16 02:28:04 -04:00
parent 357f8e2d08
commit e39819f8d0
27 changed files with 1743 additions and 7 deletions

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