Extend scraped examples layout GUI test for position of buttons
This commit is contained in:
parent
5494da23af
commit
87bc29d02b
@ -33,3 +33,17 @@ assert-property: (
|
||||
".more-scraped-examples .scraped-example:nth-child(6) .code-wrapper .src-line-numbers",
|
||||
{"clientWidth": |clientWidth|}
|
||||
)
|
||||
|
||||
// Check that for both mobile and desktop sizes, the buttons in scraped examples are displayed
|
||||
// correctly.
|
||||
|
||||
store-value: (offset_y, 4)
|
||||
|
||||
// First with desktop
|
||||
assert-position: (".scraped-example .code-wrapper", {"y": 255})
|
||||
assert-position: (".scraped-example .code-wrapper .prev", {"y": 255 + |offset_y|})
|
||||
|
||||
// Then with mobile
|
||||
size: (600, 600)
|
||||
assert-position: (".scraped-example .code-wrapper", {"y": 314})
|
||||
assert-position: (".scraped-example .code-wrapper .prev", {"y": 314 + |offset_y|})
|
||||
|
Loading…
x
Reference in New Issue
Block a user