@@ -189,7 +189,7 @@ suite('Workspace comment navigation', function () {
189189 ) ;
190190 } ) ;
191191
192- test ( 'Workspace comments can be moved' , async function ( ) {
192+ test ( 'Workspace comments can be moved in constrained mode ' , async function ( ) {
193193 await focusOnWorkspaceComment ( this . browser , this . commentId1 ) ;
194194
195195 const initialPosition = await this . getCommentLocation ( this . commentId1 ) ;
@@ -203,4 +203,19 @@ suite('Workspace comment navigation', function () {
203203 const newPosition = await this . getCommentLocation ( this . commentId1 ) ;
204204 chai . assert . deepEqual ( newPosition , [ 220 , 240 ] ) ;
205205 } ) ;
206+
207+ test ( 'Workspace comments can be moved in unconstrained mode' , async function ( ) {
208+ await focusOnWorkspaceComment ( this . browser , this . commentId1 ) ;
209+
210+ const initialPosition = await this . getCommentLocation ( this . commentId1 ) ;
211+ chai . assert . deepEqual ( initialPosition , [ 200 , 200 ] ) ;
212+
213+ await sendKeyAndWait ( this . browser , 'm' ) ;
214+ await sendKeyAndWait ( this . browser , Key . ArrowUp , 2 ) ;
215+ await sendKeyAndWait ( this . browser , Key . ArrowLeft ) ;
216+ await sendKeyAndWait ( this . browser , Key . Enter ) ;
217+
218+ const newPosition = await this . getCommentLocation ( this . commentId1 ) ;
219+ chai . assert . deepEqual ( newPosition , [ 180 , 160 ] ) ;
220+ } ) ;
206221} ) ;
0 commit comments