Index: editor/ft/Code Lab Legacy.suite/Scripts/Step 1.script |
diff --git a/editor/util/testing/mac/CodeLab.suite/Scripts/Step 1.script b/editor/ft/Code Lab Legacy.suite/Scripts/Step 1.script |
similarity index 58% |
copy from editor/util/testing/mac/CodeLab.suite/Scripts/Step 1.script |
copy to editor/ft/Code Lab Legacy.suite/Scripts/Step 1.script |
index 7619380da3a1d9f3d2a7c33ddd1a9e2c75010435..4a00d67beb7291ce35d53c83ddf8e6961ee68a3a 100644 |
--- a/editor/util/testing/mac/CodeLab.suite/Scripts/Step 1.script |
+++ b/editor/ft/Code Lab Legacy.suite/Scripts/Step 1.script |
@@ -1,37 +1,38 @@ |
-Run "open codelab file search" |
-TypeText downArrow |
-TypeText enter |
-Wait 10 |
-TypeText rightArrow |
-Wait 5 |
-TypeText rightArrow(* redundant *) |
-WaitFor 30, "pubspec lock" |
+openLab 1 |
TypeText downArrow,downArrow,downArrow,downArrow,downArrow |
-TypeText rightArrow |
+Run util's expandTreeNode |
TypeText downArrow,downArrow,downArrow,downArrow |
Run "check problems" |
-RightClick (Text:"index.html") |
-Click (Text:"Run in Dartium") |
+(* Don't bother running it now. |
+Run util's selectContextMenuItem "index.html", "Run in Dartium" |
WaitFor 10,"browser right arrow button" |
+*) |
DoubleClick "lib expando" |
TypeText downArrow |
TypeText enter |
-(* |
+ |
put (325,250) into TopLeft |
-put (700,280) into BottomRight |
+put (700,500) into BottomRight |
set the SearchRectangle to (TopLeft,BottomRight) |
-*) |
-Click (Text:"Import the Web UI",CaseSensitive:"yes",IgnoreSpaces:"no",IgnoreUnderscores:"no",Contrast:"yes") |
+Click (Text:"Import the Web UI",CaseSensitive:"yes",IgnoreSpaces:"no",IgnoreUnderscores:"no",ValidCharacters:"*",Contrast:"yes") |
set the SearchRectangle to () |
+ |
TypeText downArrow |
TypeText "import 'package:web_ui/web_ui.dart';" |
TypeText enter |
-Click (Text:"Mark the class",CaseSensitive:"yes",IgnoreSpaces:"no",IgnoreUnderscores:"no",Contrast:"yes") |
+ |
+put (325,300) into TopLeft |
+put (700,550) into BottomRight |
+set the SearchRectangle to (TopLeft,BottomRight) |
+Click (Text:"Mark the class",CaseSensitive:"yes",IgnoreSpaces:"no",IgnoreUnderscores:"no",ValidCharacters:"*",Contrast:"yes") |
+set the SearchRectangle to () |
+ |
TypeText downArrow, rightArrow, upArrow |
TypeText enter |
TypeText upArrow |
TypeText "@observable" |
-TypeText commandKey,f |
+ |
+Run util's openFind |
TypeText "STEP 1" |
TypeText escape |
TypeText downArrow |
@@ -40,24 +41,30 @@ repeat 10 times |
TypeText downArrow |
end repeat |
TypeText deleteKey,deleteKey |
-TypeText commandKey,s |
+ |
+Run util's saveFile |
Wait 10 |
-DoubleClick (Text:"index.html",CaseSensitive:"yes",IgnoreSpaces:"no",IgnoreUnderscores:"no") |
-TypeText commandKey,f |
+ |
+DoubleClick (Text:"index.html",CaseSensitive:"yes",IgnoreSpaces:"no",IgnoreUnderscores:"no",ValidCharacters:"*") |
+Run util's activateEditor |
+ |
+Run util's openFind |
TypeText "STEP 1" |
TypeText escape |
TypeText downArrow,leftArrow |
TypeText enter |
TypeText "{{activeDocument.wordCount}}" |
-TypeText commandKey,s |
-Wait 2 |
+ |
+Run util's saveFile |
+Wait 10 |
+ |
Click "run button" |
WaitFor 10,"browser right arrow button" |
-Click (Text:"Try typing",CaseSensitive:"yes",IgnoreSpaces:"no",IgnoreUnderscores:"no",dpi:94) |
+Click (Text:"Try typing",CaseSensitive:"yes",IgnoreSpaces:"no",IgnoreUnderscores:"no",ValidCharacters:"*",dpi:94) |
TypeText downArrow,enter |
TypeText "Lorem ipsum dolor sit amet" |
-Click (Text:"10 words") |
-Click (Text:"Chromium",CaseSensitive:"yes") |
-Click (Text:"Quit Chromium",CaseSensitive:"yes") |
-RightClick (Text:"2013",CaseSensitive:"yes",dpi:94) |
-Click (Text:"Close Folder") |
+WaitFor 2, "10words" |
+ |
+Run util's exitChromium |
+Run util's deleteProject (Text:"2013-codelab",CaseSensitive:"yes",IgnoreSpaces:"no",IgnoreUnderscores:"no",ValidCharacters:"*",dpi:94) |
+Run util's deleteOutput |