forked from kevadesu/forgejo
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
|
@ -3,7 +3,7 @@
|
|||
// @watch end
|
||||
|
||||
import {expect} from '@playwright/test';
|
||||
import {test, login_user, load_logged_in_context} from './utils_e2e.ts';
|
||||
import {test, login_user, save_visual, load_logged_in_context} from './utils_e2e.ts';
|
||||
|
||||
test.beforeAll(async ({browser}, workerInfo) => {
|
||||
await login_user(browser, workerInfo, 'user2');
|
||||
|
@ -20,4 +20,5 @@ test('Correct link and tooltip', async ({browser}, workerInfo) => {
|
|||
await page.waitForLoadState('networkidle'); // eslint-disable-line playwright/no-networkidle
|
||||
await expect(repoStatus).toHaveAttribute('href', '/user2/test_workflows/actions', {timeout: 10000});
|
||||
await expect(repoStatus).toHaveAttribute('data-tooltip-content', /^(Error|Failure)$/);
|
||||
await save_visual(page);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue