mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 04:12:10 +00:00
tests(e2e): Generate more screenshots
- create screenshots on tests that create a custom page - skip screenshot on a page that uses the default page (it is added automatically and already exists) - replace a useless response wait and assert the correct page style instead
This commit is contained in:
parent
5929b330e4
commit
840605cc75
14 changed files with 50 additions and 22 deletions
|
@ -5,7 +5,7 @@
|
|||
// @watch end
|
||||
|
||||
import {expect} from '@playwright/test';
|
||||
import {test, login_user, login} from './utils_e2e.ts';
|
||||
import {test, save_visual, login_user, login} from './utils_e2e.ts';
|
||||
|
||||
test.beforeAll(async ({browser}, workerInfo) => {
|
||||
await login_user(browser, workerInfo, 'user2');
|
||||
|
@ -66,6 +66,7 @@ test('Always focus edit tab first on edit', async ({browser}, workerInfo) => {
|
|||
|
||||
await expect(editTab).toHaveClass(/active/);
|
||||
await expect(previewTab).not.toHaveClass(/active/);
|
||||
await save_visual(page);
|
||||
});
|
||||
|
||||
test('Quote reply', async ({browser}, workerInfo) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue