Skip to content

Commit

Permalink
Adjust e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Dec 19, 2023
1 parent f19a197 commit 6e7751d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/e2e/specs/editor/various/multi-block-selection.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,16 @@ test.describe( 'Multi-block selection', () => {
force: true,
} );

await expect
.poll( multiBlockSelectionUtils.getSelectedFlatIndices )
.toEqual( [ 1 ] );

await paragraph1.click( {
position: { x: -1, y: 0 },
// Use force since it's outside the bounding box of the element.
force: true,
} );

await expect
.poll( () =>
page.evaluate( () => window.getSelection().rangeCount )
Expand Down

0 comments on commit 6e7751d

Please sign in to comment.