11goto: "file://" + |DOC_PATH| + "/scrape_examples/fn.test.html"
22
3+ // The next/prev buttons vertically scroll the code viewport between examples
34store-property: (initialScrollTop, ".scraped-example-list > .scraped-example pre", "scrollTop")
45focus: ".scraped-example-list > .scraped-example .next"
56press-key: "Enter"
@@ -12,6 +13,7 @@ assert-property: (".scraped-example-list > .scraped-example pre", {
1213 "scrollTop": |initialScrollTop|
1314})
1415
16+ // The expand button increases the scrollHeight of the minimized code viewport
1517store-property: (smallOffsetHeight, ".scraped-example-list > .scraped-example pre", "offsetHeight")
1618assert-property-false: (".scraped-example-list > .scraped-example pre", {
1719 "scrollHeight": |smallOffsetHeight|
@@ -26,11 +28,15 @@ assert-property: (".scraped-example-list > .scraped-example pre", {
2628 "scrollHeight": |fullOffsetHeight|
2729})
2830
31+ // Clicking "More examples..." will open additional examples
2932assert-attribute-false: (".more-examples-toggle", {"open": ""})
3033click: ".more-examples-toggle"
3134assert-attribute: (".more-examples-toggle", {"open": ""})
35+
36+ // Toggling all docs will close additional examples
3237click: "#toggle-all-docs"
3338assert-attribute-false: (".more-examples-toggle", {"open": ""})
39+
3440// After re-opening the docs, the additional examples should stay closed
3541click: "#toggle-all-docs"
3642assert-attribute-false: (".more-examples-toggle", {"open": ""})
0 commit comments