Skip to content

Commit 038c15e

Browse files
committed
chore: Add test for moving workspace comments in unconstrained mode.
1 parent 7b813cf commit 038c15e

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

test/webdriverio/test/workspace_comment_test.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)