Skip to content

Commit 1853015

Browse files
committed
TEST
1 parent 260e2b6 commit 1853015

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

test/integration/freetext_editor_spec.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3233,8 +3233,9 @@ describe("FreeText Editor", () => {
32333233
await page.waitForSelector(`${editorSelector} button.delete`);
32343234
await page.click(`${editorSelector} button.delete`);
32353235
await waitForSerialized(page, 0);
3236-
32373236
await page.waitForSelector("#editorUndoBar", { visible: true });
3237+
3238+
await page.waitForSelector("#editorUndoBarUndoButton", { visible: true });
32383239
await page.click("#editorUndoBarUndoButton");
32393240
await waitForSerialized(page, 1);
32403241
await page.waitForSelector(editorSelector);

test/integration/highlight_editor_spec.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,6 +2206,7 @@ describe("Highlight Editor", () => {
22062206
await waitForSerialized(page, 0);
22072207
await page.waitForSelector("#editorUndoBar", { visible: true });
22082208

2209+
await page.waitForSelector("#editorUndoBarUndoButton", { visible: true });
22092210
await page.click("#editorUndoBarUndoButton");
22102211
await waitForSerialized(page, 1);
22112212
await page.waitForSelector(editorSelector);
@@ -2233,6 +2234,7 @@ describe("Highlight Editor", () => {
22332234
await waitForSerialized(page, 0);
22342235
await page.waitForSelector("#editorUndoBar", { visible: true });
22352236

2237+
await page.waitForSelector("#editorUndoBarUndoButton", { visible: true });
22362238
await page.click("#editorUndoBarUndoButton");
22372239
await page.waitForSelector("#editorUndoBar", { hidden: true });
22382240
})
@@ -2561,6 +2563,7 @@ describe("Highlight Editor", () => {
25612563
await waitForSerialized(page, 0);
25622564
await page.waitForSelector("#editorUndoBar", { visible: true });
25632565

2566+
await page.waitForSelector("#editorUndoBarUndoButton", { visible: true });
25642567
await page.focus("#editorUndoBarUndoButton"); // we have to simulate focus like this to avoid the wait
25652568
await page.keyboard.press("Enter");
25662569
await waitForSerialized(page, 1);
@@ -2574,6 +2577,7 @@ describe("Highlight Editor", () => {
25742577
await waitForSerialized(page, 0);
25752578
await page.waitForSelector("#editorUndoBar", { visible: true });
25762579

2580+
await page.waitForSelector("#editorUndoBarUndoButton", { visible: true });
25772581
await page.focus("#editorUndoBarUndoButton"); // we have to simulate focus like this to avoid the wait
25782582
await page.keyboard.press(" ");
25792583
await waitForSerialized(page, 1);

test/integration/ink_editor_spec.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,8 +896,9 @@ describe("Ink Editor", () => {
896896
await page.waitForSelector(`${editorSelector} button.delete`);
897897
await page.click(`${editorSelector} button.delete`);
898898
await waitForSerialized(page, 0);
899-
900899
await page.waitForSelector("#editorUndoBar", { visible: true });
900+
901+
await page.waitForSelector("#editorUndoBarUndoButton", { visible: true });
901902
await page.click("#editorUndoBarUndoButton");
902903
await waitForSerialized(page, 1);
903904
await page.waitForSelector(editorSelector);
@@ -1093,9 +1094,13 @@ describe("Ink Editor", () => {
10931094
await waitForSelectedEditor(page, editorSelector);
10941095
await dragAndDrop(page, editorSelector, [[0, -30]], /* steps = */ 10);
10951096
await waitForSerialized(page, 2);
1097+
10961098
await page.waitForSelector(`${editorSelector} button.delete`);
10971099
await page.click(`${editorSelector} button.delete`);
10981100
await waitForSerialized(page, 1);
1101+
await page.waitForSelector("#editorUndoBar", { visible: true });
1102+
1103+
await page.waitForSelector("#editorUndoBarUndoButton", { visible: true });
10991104
await page.click("#editorUndoBarUndoButton");
11001105
await page.waitForSelector("#editorUndoBar", { hidden: true });
11011106

test/integration/stamp_editor_spec.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,9 +1605,9 @@ describe("Stamp Editor", () => {
16051605
await page.waitForSelector(`${editorSelector} button.delete`);
16061606
await page.click(`${editorSelector} button.delete`);
16071607
await waitForSerialized(page, 0);
1608-
16091608
await page.waitForSelector("#editorUndoBar", { visible: true });
16101609

1610+
await page.waitForSelector("#editorUndoBarUndoButton", { visible: true });
16111611
await page.click("#editorUndoBarUndoButton");
16121612
await waitForSerialized(page, 1);
16131613
await page.waitForSelector(editorSelector);

0 commit comments

Comments
 (0)