tests(e2e): Prepare for visual regression testing

- fix some configuration issues
- mask or replace dynamic content from screenshots
- explain the behaviour in the e2e README

readme
This commit is contained in:
Otto Richter 2024-12-02 02:44:44 +01:00
parent 0cac04d3dd
commit 5929b330e4
5 changed files with 68 additions and 23 deletions

View file

@ -31,7 +31,7 @@ test('Register Form', async ({page}, workerInfo) => {
await expect(page.locator('.secondary-nav span>img.ui.avatar')).toBeVisible();
await expect(page.locator('.ui.positive.message.flash-success')).toHaveText('Account was successfully created. Welcome!');
save_visual(page);
await save_visual(page);
});
// eslint-disable-next-line playwright/no-skipped-test