Disable sidebar via stash

Change-Id: I90a89bba41ebf8cdc7dd5b14bf4762784fb834fa
diff --git a/t/custom/doc/off.html.ep b/t/custom/doc/off.html.ep
new file mode 100644
index 0000000..b907f12
--- /dev/null
+++ b/t/custom/doc/off.html.ep
@@ -0,0 +1,6 @@
+% layout 'main', sidebar_off => 1;
+
+
+<div class="intro">
+  <h2>This has no sidebar!</h2>
+</div>
diff --git a/t/intro.t b/t/intro.t
index 6d46466..7ea9022 100644
--- a/t/intro.t
+++ b/t/intro.t
@@ -50,6 +50,7 @@
   ->element_exists('meta[name="keywords"][content^="KorAP"]')
   ->element_exists('body[itemscope][itemtype="http://schema.org/WebApplication"]')
   ->element_exists_not('#koralQuery')
+  ->attr_is('aside', 'class', ' off')
   ;
 
 $t->get_ok('/?cq=corpusSigle%3DGOE')
@@ -63,6 +64,7 @@
   ->element_exists('meta[name="keywords"][content^="KorAP"]')
   ->element_exists('body[itemscope][itemtype="http://schema.org/WebApplication"]')
   ->element_exists('#koralQuery')
+  ->attr_is('aside', 'class',' off')
   ;
 
 $t->get_ok('/huhuhuhuhu')
@@ -70,4 +72,13 @@
   ->text_is('title', 'KorAP: 404 - Page not found')
   ->text_is('h1 span', 'KorAP: 404 - Page not found');
 
+
+$t->get_ok('/doc/off')
+  ->status_is(200)
+  ->text_is('title', 'KorAP - Corpus Analysis Platform')
+  ->text_is('h1 span', 'KorAP - Corpus Analysis Platform')
+  ->attr_is('aside', 'class',' off')
+  ;
+
+
 done_testing();