Merge pull request #16967 from timvandermeij/fix-intermittent-freetext

Fix integration test "FreeText Editor FreeText (edit existing in double clicking on it) must move an annotation"
This commit is contained in:
Tim van der Meij 2023-09-23 14:34:43 +02:00 committed by GitHub
commit f9eda5b30e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1176,7 +1176,7 @@ describe("FreeText Editor", () => {
await Promise.all(
pages.map(async ([browserName, page]) => {
await page.click("[data-annotation-id='26R']", { clickCount: 2 });
await page.waitForTimeout(10);
await page.waitForSelector(`${getEditorSelector(0)}-editor`);
const [focusedId, editable] = await page.evaluate(() => {
const el = document.activeElement;