mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-27 09:24:53 +00:00
- add pr-review e2e test - speed up most tests by logging in via POST to avoid the login form, login form is still exercised in a dedicated test - speed up most tests be removing post-test cleanup, unnecessary because each repo is created with a unique name - misc parallelization and api call reduction - total suite runtime is about the same as before --------- Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
17 lines
749 B
TypeScript
17 lines
749 B
TypeScript
import {test, expect} from '@playwright/test';
|
|
import {loginUser, apiCreateUser, randomString} from './utils.ts';
|
|
|
|
test('update profile biography', async ({page, request}) => {
|
|
const username = `e2e-settings-${randomString(8)}`;
|
|
const bio = `e2e-bio-${randomString(8)}`;
|
|
await apiCreateUser(request, username);
|
|
await loginUser(page, username);
|
|
await page.goto('/user/settings');
|
|
await page.getByLabel('Biography').fill(bio);
|
|
await page.getByRole('button', {name: 'Update Profile'}).click();
|
|
await expect(page.getByLabel('Biography')).toHaveValue(bio);
|
|
await page.getByLabel('Biography').fill('');
|
|
await page.getByRole('button', {name: 'Update Profile'}).click();
|
|
await expect(page.getByLabel('Biography')).toHaveValue('');
|
|
});
|