mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-12-02 00:01:59 -10:00
* Add expect assertions, console error checks, and scenario folders to the web editor driver * Fail a scenario folder run on unreadable entries instead of skipping them
22 lines
800 B
JSON
22 lines
800 B
JSON
// Draw a rectangle with the Rectangle tool
|
|
|
|
{ "type": "resize", "size": [1600, 1000] }
|
|
|
|
// Open a new document
|
|
{ "type": "press", "key": "Control+KeyN" }
|
|
{ "type": "waitIdle" }
|
|
{ "type": "click", "at": [802, 588] }
|
|
{ "type": "waitIdle" }
|
|
|
|
// Pick the tool, which the hints bar describes
|
|
{ "type": "press", "key": "KeyM" }
|
|
{ "type": "waitIdle" }
|
|
{ "type": "expect", "text": "Draw Rectangle" }
|
|
|
|
// Draw, then check the new layer and its width and height
|
|
{ "type": "drag", "from": [200, 150], "to": [500, 350], "space": "viewport", "filmstrip": { "path": "scenarios/draw-rectangle.png", "frames": 4, "region": "viewport" } }
|
|
{ "type": "waitIdle" }
|
|
{ "type": "expect", "data": "layer", "count": 2 }
|
|
{ "type": "expect", "value": "500.26", "count": 1 }
|
|
{ "type": "expect", "value": "333.51", "count": 1 }
|