✅(e2e) reduce flakiness in e2e tests
Flakiness in e2e tests has been reduced by: - Adding waits for media-check processing in image tests. - Ensuring that slash menu resets are handled correctly to avoid flakiness. - Wait for the Download button to be stable before clicking
This commit is contained in:
@@ -47,6 +47,10 @@ test.describe('Config', () => {
|
||||
|
||||
await expect(image).toBeVisible();
|
||||
|
||||
// Wait for the media-check to be processed
|
||||
// eslint-disable-next-line playwright/no-wait-for-timeout
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
// Check src of image
|
||||
expect(await image.getAttribute('src')).toMatch(
|
||||
/http:\/\/localhost:8083\/media\/.*\/attachments\/.*.png/,
|
||||
|
||||
Reference in New Issue
Block a user