Files
Keavon Chambers a2f8a5dd6a Add expect assertions, console error checks, and scenario folders to the web editor driver (#4658)
* 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
2026-10-08 03:39:39 -07:00

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" }