Skip to content

Commit 6f8b274

Browse files
committed
fix: relax tests to pass on non-Apple device
1 parent 563419a commit 6f8b274

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/blockly/tests/mocha/aria_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ suite('ARIA', function () {
555555
block.getFocusableElement(),
556556
Blockly.utils.aria.State.LABEL,
557557
);
558-
assert.isTrue(label.endsWith('has input'));
558+
assert.isTrue(label.replace(/,$/, '').endsWith('has input'));
559559
});
560560

561561
test('Blocks with multiple inputs are properly labeled', function () {
@@ -564,7 +564,7 @@ suite('ARIA', function () {
564564
block.getFocusableElement(),
565565
Blockly.utils.aria.State.LABEL,
566566
);
567-
assert.isTrue(label.endsWith('has inputs'));
567+
assert.isTrue(label.replace(/,$/, '').endsWith('has inputs'));
568568
});
569569
test('Blocks with multiple statement inputs are properly labeled', function () {
570570
const json = {
@@ -592,7 +592,7 @@ suite('ARIA', function () {
592592
);
593593
assert.isFalse(label.includes('else if, do'));
594594
assert.isFalse(label.includes('else,'));
595-
assert.isTrue(label.endsWith('has 4 branches'));
595+
assert.isTrue(label.replace(/,$/, '').endsWith('has 4 branches'));
596596
});
597597
});
598598

0 commit comments

Comments
 (0)