Add GUI test to check size of additional scraped examples
This commit is contained in:
parent
9104632c4f
commit
660210c4af
@ -37,6 +37,7 @@ assert-property: (
|
||||
|
||||
// The "title" should be located at the right bottom corner of the code example.
|
||||
store-position: (".scraped-example .example-wrap", {"x": x, "y": y})
|
||||
assert-size: (".scraped-example .example-wrap", {"height": 130})
|
||||
store-size: (".scraped-example .example-wrap", {"width": width, "height": height})
|
||||
store-size: (".scraped-example .scraped-example-title", {
|
||||
"width": title_width,
|
||||
@ -47,6 +48,13 @@ assert-position: (".scraped-example .scraped-example-title", {
|
||||
"y": |y| + |height| - |title_height| - 8,
|
||||
})
|
||||
|
||||
store-size: (".more-scraped-examples .scraped-example .example-wrap", {"height": more_height})
|
||||
assert: |more_height| > |height|
|
||||
assert-size: (".more-scraped-examples .scraped-example .example-wrap", {
|
||||
"height": 250,
|
||||
"width": |width|,
|
||||
})
|
||||
|
||||
// Check that the expand button works and also that line number aligns with code.
|
||||
move-cursor-to: ".scraped-example .rust"
|
||||
click: ".scraped-example .button-holder .expand"
|
||||
|
Loading…
Reference in New Issue
Block a user