|
@@ -3,13 +3,10 @@ from pytest import mark
|
|
|
|
|
|
@mark.parametrize('expected, params', [
|
|
@mark.parametrize('expected, params', [
|
|
("""<form id="filter" method="get" action="products">
|
|
("""<form id="filter" method="get" action="products">
|
|
-<div class="pure-g">
|
|
|
|
- <div class="pure-u-1">
|
|
|
|
- <div class="pure-button-group" role="group" style="padding: 1em 0 0;">
|
|
|
|
- <style>
|
|
|
|
-.button-resize { font-size: 65%; }
|
|
|
|
|
|
+<style>
|
|
|
|
+.button-resize { font-size: 70%; }
|
|
@media screen and (min-width:35.5em){
|
|
@media screen and (min-width:35.5em){
|
|
- .button-resize { font-size: 70%; }
|
|
|
|
|
|
+ .button-resize { font-size: 75%; }
|
|
}
|
|
}
|
|
@media screen and (min-width:40em){
|
|
@media screen and (min-width:40em){
|
|
.button-resize { font-size: 85%; }
|
|
.button-resize { font-size: 85%; }
|
|
@@ -20,14 +17,24 @@ from pytest import mark
|
|
@media screen and (min-width:80em){
|
|
@media screen and (min-width:80em){
|
|
.button-resize { font-size: 110%; }
|
|
.button-resize { font-size: 110%; }
|
|
}
|
|
}
|
|
- </style>
|
|
|
|
- <button class="button-resize pure-button" type="submit"> Apply </button>
|
|
|
|
|
|
+</style>
|
|
|
|
+<div class="pure-g">
|
|
|
|
+ <div class="pure-u-1">
|
|
|
|
+ <div class="pure-button-group" role="nav" style="padding: 1em 0 0;">
|
|
<button class="button-resize pure-button" type="submit" formaction="trend" > Trend </button>
|
|
<button class="button-resize pure-button" type="submit" formaction="trend" > Trend </button>
|
|
<button class="button-resize pure-button" type="submit" formaction="products" disabled="true"> Products </button>
|
|
<button class="button-resize pure-button" type="submit" formaction="products" disabled="true"> Products </button>
|
|
<button class="button-resize pure-button" type="submit" formaction="categories" > Categories </button>
|
|
<button class="button-resize pure-button" type="submit" formaction="categories" > Categories </button>
|
|
<button class="button-resize pure-button" type="submit" formaction="groups" > Groups </button>
|
|
<button class="button-resize pure-button" type="submit" formaction="groups" > Groups </button>
|
|
<button class="button-resize pure-button" type="submit" formaction="tags" > Tags </button>
|
|
<button class="button-resize pure-button" type="submit" formaction="tags" > Tags </button>
|
|
- <button form="clear" class="button-resize pure-button" type="submit"> Clear </button>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+<div class="pure-g">
|
|
|
|
+ <div class="pure-u-1">
|
|
|
|
+ <div class="pure-button-group" role="action" style="padding: 1em 0 0;">
|
|
|
|
+ <button class="button-resize pure-button" type="submit"> Apply </button>
|
|
|
|
+ <button form="clear" class="button-resize pure-button" type="submit"> Clear </button>
|
|
|
|
+ <button form="reload" class="button-resize pure-button" type="submit"> Reload </button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -40,13 +47,23 @@ from pytest import mark
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
<form id="clear" method="get" action="products">
|
|
<form id="clear" method="get" action="products">
|
|
- <div style="width: 0; height: 1em">
|
|
|
|
|
|
+ <div style="width: 0; height: 0">
|
|
<input type="text" name="product" value="" hidden="true"/>
|
|
<input type="text" name="product" value="" hidden="true"/>
|
|
<input type="text" name="category" value="" hidden="true"/>
|
|
<input type="text" name="category" value="" hidden="true"/>
|
|
<input type="text" name="group" value="" hidden="true"/>
|
|
<input type="text" name="group" value="" hidden="true"/>
|
|
<input type="text" name="tag" value="" hidden="true"/>
|
|
<input type="text" name="tag" value="" hidden="true"/>
|
|
<input type="text" name="unit" value="" hidden="true"/>
|
|
<input type="text" name="unit" value="" hidden="true"/>
|
|
</div>
|
|
</div>
|
|
|
|
+</form>
|
|
|
|
+<form id="reload" method="get" action="products">
|
|
|
|
+ <div style="width: 0; height: 0">
|
|
|
|
+<input type="text" name="product" value="!Chicken Stir Fry" hidden="true"/>
|
|
|
|
+<input type="text" name="category" value="!Beef" hidden="true"/>
|
|
|
|
+<input type="text" name="group" value="Fish, Meat, Eggs" hidden="true"/>
|
|
|
|
+<input type="text" name="tag" value="" hidden="true"/>
|
|
|
|
+<input type="text" name="unit" value="kg" hidden="true"/>
|
|
|
|
+<input type="text" name="reload" value="true" hidden="true"/>
|
|
|
|
+ </div>
|
|
</form>""", {
|
|
</form>""", {
|
|
"method": "get", "action": "products", "params": [
|
|
"method": "get", "action": "products", "params": [
|
|
{'name': 'product', 'value': '!Chicken Stir Fry'},
|
|
{'name': 'product', 'value': '!Chicken Stir Fry'},
|