Skip to content

Commit a1aff56

Browse files
committed
[Bugfix] Add extra wait to flaky thumbnail test (#9248)
(master → master)
1 parent 8af9e1f commit a1aff56

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

playwright-tests/ui/thumbnails-panel.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,7 @@ test.describe('Thumbnails Panel', () => {
351351
expect(closeMultiSelectButton).toBeNull();
352352
});
353353

354-
// skip flaky test
355-
// https://apryse.atlassian.net/browse/WVR-5453
356-
test.skip('Should be able to insert pages without issues', async ({ page }) => {
357-
const { iframe, waitForInstance } = await loadViewerSample(page, 'viewing/viewing');
354+
test('Should be able to insert pages without issues', async ({ page }) => { const { iframe, waitForInstance } = await loadViewerSample(page, 'viewing/viewing');
358355
const instance = await waitForInstance();
359356
await iframe.locator('#pageWidgetContainer1').waitFor();
360357

@@ -364,6 +361,7 @@ test.describe('Thumbnails Panel', () => {
364361

365362
const pagesToInsert = 50;
366363
await instance('openElements', ['thumbnailsPanel']);
364+
await waitForThumbnailPanelToRender(iframe);
367365
await iframe.locator('.documentControlsInput input').waitFor();
368366

369367
await iframe.evaluate(() => {

0 commit comments

Comments
 (0)