Skip to content

Commit b838b9f

Browse files
update selection tests to match correct behavior
1 parent 57152f2 commit b838b9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/lexical-playground/__tests__/e2e/Selection.spec.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ test.describe.parallel('Selection', () => {
14991499
await assertSelection(page, {
15001500
anchorOffset: 0,
15011501
anchorPath: [2],
1502-
focusOffset: 1,
1502+
focusOffset: 0,
15031503
focusPath: [1, 1, 0],
15041504
});
15051505
});
@@ -1544,7 +1544,7 @@ test.describe.parallel('Selection', () => {
15441544
await assertSelection(page, {
15451545
anchorOffset: 0,
15461546
anchorPath: [1],
1547-
focusOffset: 1,
1547+
focusOffset: 0,
15481548
focusPath: [0, 1, 0],
15491549
});
15501550
},
@@ -1659,7 +1659,7 @@ test.describe.parallel('Selection', () => {
16591659
await assertSelection(page, {
16601660
anchorOffset: 0,
16611661
anchorPath: [2],
1662-
focusOffset: 1,
1662+
focusOffset: 0,
16631663
focusPath: [1, 1, 0],
16641664
});
16651665
});

0 commit comments

Comments
 (0)