@@ -6,20 +6,36 @@ describe('twitch-app contains valid streamfeed', () => {
66 } )
77
88 it ( 'shows default heading' , ( ) => {
9- cy . get ( '[data-testid="streamfeed-heading"]' ) . should ( 'have.length' , 1 )
9+ cy . get ( '[data-testid="streamfeed-heading-1 "]' ) . should ( 'have.length' , 1 )
1010
11- cy . get ( '[data-testid="streamfeed-heading"]' )
11+ cy . get ( '[data-testid="streamfeed-heading-1 "]' )
1212 . children ( )
1313 . should ( 'have.length' , 2 )
14+
15+ cy . get ( '[data-testid="streamfeed-heading-2"]' ) . should ( 'have.length' , 1 )
16+
17+ cy . get ( '[data-testid="streamfeed-heading-2"]' )
18+ . children ( )
19+ . should ( 'have.length' , 3 )
1420 } )
1521
1622 it ( 'contains correct default heading content' , ( ) => {
17- cy . get ( '[data-testid="streamfeed-heading"]' )
23+ cy . get ( '[data-testid="streamfeed-heading-1"]' )
24+ . children ( )
25+ . eq ( 0 )
26+ . contains ( 'Current' )
27+
28+ cy . get ( '[data-testid="streamfeed-heading-1"]' )
29+ . children ( )
30+ . eq ( 1 )
31+ . contains ( 'Top Livestream' )
32+
33+ cy . get ( '[data-testid="streamfeed-heading-2"]' )
1834 . children ( )
1935 . eq ( 0 )
2036 . contains ( 'German Livestreams' )
2137
22- cy . get ( '[data-testid="streamfeed-heading"]' )
38+ cy . get ( '[data-testid="streamfeed-heading-2 "]' )
2339 . children ( )
2440 . eq ( 1 )
2541 . contains ( 'you might like' )
@@ -38,7 +54,7 @@ describe('twitch-app contains valid streamfeed', () => {
3854
3955 cy . get ( '[data-testid="streamfeed-article-0"]' )
4056 . children ( )
41- . should ( 'have.length' , 2 )
57+ . should ( 'have.length' , 3 )
4258
4359 cy . get ( '[data-testid="streamfeed-thumbnail-0' ) . should ( 'have.length' , 1 )
4460
0 commit comments