mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-12-01 15:53:26 -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
17 lines
662 B
JSON
17 lines
662 B
JSON
// Create a new document
|
|
|
|
{ "type": "resize", "size": [1600, 1000] }
|
|
|
|
// Open the New Document dialog, then confirm it with its OK button, which sits here at this page size
|
|
{ "type": "press", "key": "Control+KeyN" }
|
|
{ "type": "waitIdle" }
|
|
{ "type": "expect", "data": "text-button", "text": "OK", "count": 1 }
|
|
{ "type": "click", "at": [802, 588] }
|
|
{ "type": "waitIdle" }
|
|
|
|
// The document opens in a tab with only its artboard
|
|
{ "type": "expect", "data": "tab", "text": "Untitled Document" }
|
|
{ "type": "expect", "data": "layer", "count": 1 }
|
|
{ "type": "expect", "data": "layer", "value": "Artboard" }
|
|
{ "type": "screenshot", "path": "scenarios/new-document.png" }
|