@@ -281,6 +281,38 @@ describe("bit-docs-tag-demo", function() {
281
281
} ) ;
282
282
} ) ;
283
283
284
+ describe ( "without html" , function ( ) {
285
+ before ( function ( ) {
286
+ return ctx . browser . newPage ( ) . then ( function ( p ) {
287
+ ctx . page = p ;
288
+ return ctx . page . goto (
289
+ "http://127.0.0.1:8081/test/temp/withoutHtml.html"
290
+ ) ;
291
+ } ) ;
292
+ } ) ;
293
+
294
+ after ( function ( ) {
295
+ return ctx . page . close ( ) . then ( function ( ) {
296
+ ctx . page = null ;
297
+ } ) ;
298
+ } ) ;
299
+
300
+ describe ( "HTML" , function ( ) {
301
+ // expect no content
302
+ dataForHtml ( "" ) ;
303
+
304
+ it ( "tab is hidden" , function ( ) {
305
+ return ctx . page
306
+ . evaluate ( function ( ) {
307
+ return document . querySelector ( '[data-tab="html"]' ) . style . display ;
308
+ } )
309
+ . then ( function ( display ) {
310
+ assert . equal ( display , "none" , "html tab is hidden" ) ;
311
+ } ) ;
312
+ } ) ;
313
+ } ) ;
314
+ } ) ;
315
+
284
316
describe ( "without js" , function ( ) {
285
317
before ( function ( ) {
286
318
return ctx . browser . newPage ( ) . then ( function ( p ) {
@@ -448,8 +480,8 @@ describe("bit-docs-tag-demo", function() {
448
480
} ;
449
481
} )
450
482
. then ( function ( r ) {
451
- assert . equal ( r . wrappers , 6 , "four wrappers exists " ) ;
452
- assert . equal ( r . injected , 6 , "four injected into wrappers" ) ;
483
+ assert . equal ( r . wrappers , 7 , "demo wrappers exist " ) ;
484
+ assert . equal ( r . injected , 7 , "demos injected into wrappers" ) ;
453
485
} ) ;
454
486
} ) ;
455
487
} ) ;
0 commit comments