Skip to content

Commit 600dbef

Browse files
authored
fix: Improve node ID check robustness
1 parent 30c5286 commit 600dbef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/webdriverio/test/block_comment_test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ suite('Block comment navigation', function () {
3636
await keyRight(this.browser);
3737
await sendKeyAndWait(this.browser, Key.Enter);
3838
const focusedNodeId = await getCurrentFocusNodeId(this.browser);
39-
chai.assert.equal(focusedNodeId, 'blockly-2s_comment_textarea_');
39+
chai.assert.isDefined(focusedNodeId);
40+
chai.assert.match(focusedNodeId, /blockly\-\w+_comment_textarea_/);
4041
});
4142

4243
test('Escape from a focused comment focuses its bubble', async function () {

0 commit comments

Comments
 (0)