Skip to content

Commit e4cf413

Browse files
Fixed drag handle add button test & snapshots (#190)
1 parent 58f98f2 commit e4cf413

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

tests/end-to-end/draghandle/draghandle.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ test.describe("Check Draghandle functionality", () => {
134134
test("Click add button for non-selected empty block", async () => {
135135
await executeSlashCommand(page, "h1");
136136
await page.keyboard.type("Heading 1");
137+
// Wait for animation to finish
138+
await page.waitForTimeout(350);
137139
await hoverAndAddBlockFromDragHandle(page, PARAGRAPH_SELECTOR, "h1");
138140

139141
await compareDocToSnapshot(page, "addnonselectedemptyblock");

tests/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-chromium-linux.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{
3131
"type": "blockContainer",
3232
"attrs": {
33-
"id": "2",
33+
"id": "1",
3434
"textColor": "default",
3535
"backgroundColor": "default"
3636
},
@@ -47,7 +47,7 @@
4747
{
4848
"type": "blockContainer",
4949
"attrs": {
50-
"id": "1",
50+
"id": "2",
5151
"textColor": "default",
5252
"backgroundColor": "default"
5353
},

tests/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-firefox-linux.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{
3131
"type": "blockContainer",
3232
"attrs": {
33-
"id": "2",
33+
"id": "1",
3434
"textColor": "default",
3535
"backgroundColor": "default"
3636
},
@@ -47,7 +47,7 @@
4747
{
4848
"type": "blockContainer",
4949
"attrs": {
50-
"id": "1",
50+
"id": "2",
5151
"textColor": "default",
5252
"backgroundColor": "default"
5353
},

tests/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-webkit-linux.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{
3131
"type": "blockContainer",
3232
"attrs": {
33-
"id": "2",
33+
"id": "1",
3434
"textColor": "default",
3535
"backgroundColor": "default"
3636
},
@@ -47,7 +47,7 @@
4747
{
4848
"type": "blockContainer",
4949
"attrs": {
50-
"id": "1",
50+
"id": "2",
5151
"textColor": "default",
5252
"backgroundColor": "default"
5353
},

0 commit comments

Comments
 (0)