@@ -46,7 +46,7 @@ suite('Keyboard navigation on Blocks', function () {
4646
4747 chai
4848 . expect ( await getCurrentFocusNodeId ( this . browser ) )
49- . to . include ( 'controls_if_2' ) ;
49+ . equal ( 'controls_if_2' ) ;
5050 } ) ;
5151
5252 test ( 'Down from statement block selects next block across stacks' , async function ( ) {
@@ -57,9 +57,7 @@ suite('Keyboard navigation on Blocks', function () {
5757 await this . browser . keys ( Key . ArrowDown ) ;
5858 await this . browser . pause ( PAUSE_TIME ) ;
5959
60- chai
61- . expect ( await getCurrentFocusNodeId ( this . browser ) )
62- . to . include ( 'p5_draw_1' ) ;
60+ chai . expect ( await getCurrentFocusNodeId ( this . browser ) ) . equal ( 'p5_draw_1' ) ;
6361 } ) ;
6462
6563 test ( 'Up from statement block selects previous block' , async function ( ) {
@@ -72,7 +70,7 @@ suite('Keyboard navigation on Blocks', function () {
7270
7371 chai
7472 . expect ( await getCurrentFocusNodeId ( this . browser ) )
75- . to . include ( 'draw_emoji_1' ) ;
73+ . equal ( 'draw_emoji_1' ) ;
7674 } ) ;
7775
7876 test ( 'Down from parent block selects first child block' , async function ( ) {
@@ -82,9 +80,7 @@ suite('Keyboard navigation on Blocks', function () {
8280 await this . browser . pause ( PAUSE_TIME ) ;
8381 await this . browser . keys ( Key . ArrowDown ) ;
8482 await this . browser . pause ( PAUSE_TIME ) ;
85- chai
86- . expect ( await getCurrentFocusNodeId ( this . browser ) )
87- . to . include ( 'p5_canvas_1' ) ;
83+ chai . expect ( await getCurrentFocusNodeId ( this . browser ) ) . equal ( 'p5_canvas_1' ) ;
8884 } ) ;
8985
9086 test ( 'Up from child block selects parent block' , async function ( ) {
@@ -94,9 +90,7 @@ suite('Keyboard navigation on Blocks', function () {
9490 await this . browser . pause ( PAUSE_TIME ) ;
9591 await this . browser . keys ( Key . ArrowUp ) ;
9692 await this . browser . pause ( PAUSE_TIME ) ;
97- chai
98- . expect ( await getCurrentFocusNodeId ( this . browser ) )
99- . to . include ( 'p5_setup_1' ) ;
93+ chai . expect ( await getCurrentFocusNodeId ( this . browser ) ) . equal ( 'p5_setup_1' ) ;
10094 } ) ;
10195
10296 test ( 'Right from block selects first field' , async function ( ) {
@@ -194,7 +188,7 @@ suite('Keyboard navigation on Blocks', function () {
194188
195189 chai
196190 . expect ( await getCurrentFocusNodeId ( this . browser ) )
197- . to . include ( 'controls_repeat_ext_1' ) ;
191+ . equal ( 'controls_repeat_ext_1' ) ;
198192 } ) ;
199193
200194 test ( 'Down from inline input selects next block' , async function ( ) {
@@ -207,7 +201,7 @@ suite('Keyboard navigation on Blocks', function () {
207201
208202 chai
209203 . expect ( await getCurrentFocusNodeId ( this . browser ) )
210- . to . include ( 'controls_repeat_ext_1' ) ;
204+ . equal ( 'controls_repeat_ext_1' ) ;
211205 } ) ;
212206
213207 test ( "Down from inline input selects block's child block" , async function ( ) {
@@ -220,7 +214,7 @@ suite('Keyboard navigation on Blocks', function () {
220214
221215 chai
222216 . expect ( await getCurrentFocusNodeId ( this . browser ) )
223- . to . include ( 'text_print_1' ) ;
217+ . equal ( 'text_print_1' ) ;
224218 } ) ;
225219
226220 test ( 'Right from text block selects shadow block then field' , async function ( ) {
@@ -245,7 +239,7 @@ suite('Keyboard navigation on Blocks', function () {
245239
246240 chai
247241 . expect ( await getCurrentFocusNodeId ( this . browser ) )
248- . to . include ( 'controls_repeat_1' ) ;
242+ . equal ( 'controls_repeat_1' ) ;
249243 } ) ;
250244} ) ;
251245
@@ -339,9 +333,7 @@ suite('Keyboard navigation on Fields', function () {
339333 await this . browser . keys ( Key . ArrowRight ) ;
340334 await this . browser . pause ( PAUSE_TIME ) ;
341335
342- chai
343- . expect ( await getCurrentFocusNodeId ( this . browser ) )
344- . to . include ( 'p5_draw_1' ) ;
336+ chai . expect ( await getCurrentFocusNodeId ( this . browser ) ) . equal ( 'p5_draw_1' ) ;
345337 } ) ;
346338
347339 test ( 'Down from field selects next block' , async function ( ) {
@@ -356,9 +348,7 @@ suite('Keyboard navigation on Fields', function () {
356348 await this . browser . keys ( Key . ArrowDown ) ;
357349 await this . browser . pause ( PAUSE_TIME ) ;
358350
359- chai
360- . expect ( await getCurrentFocusNodeId ( this . browser ) )
361- . to . include ( 'p5_draw_1' ) ;
351+ chai . expect ( await getCurrentFocusNodeId ( this . browser ) ) . equal ( 'p5_draw_1' ) ;
362352 } ) ;
363353
364354 test ( "Down from field selects block's child block" , async function ( ) {
@@ -375,6 +365,6 @@ suite('Keyboard navigation on Fields', function () {
375365
376366 chai
377367 . expect ( await getCurrentFocusNodeId ( this . browser ) )
378- . to . include ( 'draw_emoji_1' ) ;
368+ . equal ( 'draw_emoji_1' ) ;
379369 } ) ;
380370} ) ;
0 commit comments