Skip to content

Commit 9d90d56

Browse files
fix: resolve intermittent failure in duplicate thumb page test by adding click to force async rendering completion
1 parent b40b0fd commit 9d90d56

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

e2e/thumb-pages/thumbpage-duplicate-from-arrow-icon.spec.ts renamed to e2e/thumb-pages/duplicate-thumb-page-from-arrow-icon.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ test('should duplicate thumbpage when triggered via the arrow icon', async ({
4040
.locator('..');
4141
await expect(pageTwo).toBeVisible();
4242

43+
// Additional click to force the duplicate thumbnail to finish rendering.
44+
await pageTwo.click();
45+
// Without this click, the React/Konva pipeline does not always update on time and the
46+
// assertions fail intermittently.
47+
4348
// Verify components exist in copy thumb
4449
const buttonInCopyThumb = await getByShapeTypeInThumb(page, 1, 'button');
4550
const comboboxInCopyThumb = await getByShapeTypeInThumb(page, 1, 'combobox');

0 commit comments

Comments
 (0)