about summary refs log tree commit diff
path: root/__e2e__/perf-test.yml
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2024-05-13 08:43:13 -0700
committerGitHub <noreply@github.com>2024-05-13 08:43:13 -0700
commitd49b93dc7e77962c143e4798344c8e35ab8a637e (patch)
treeb893fa4388413cbd1cf139c4cd848c91d1cc13b0 /__e2e__/perf-test.yml
parent5cd4ac3a34f629945ccb86e451fbf20dd06e6863 (diff)
downloadvoidsky-d49b93dc7e77962c143e4798344c8e35ab8a637e.tar.zst
Replace e2e tests with Maestro (#3983)
* Setup maestro tests and convert some initial tests

* Remove detox

* Replace all tests with maestro
Diffstat (limited to '__e2e__/perf-test.yml')
-rw-r--r--__e2e__/perf-test.yml77
1 files changed, 77 insertions, 0 deletions
diff --git a/__e2e__/perf-test.yml b/__e2e__/perf-test.yml
new file mode 100644
index 000000000..7a7b7a18c
--- /dev/null
+++ b/__e2e__/perf-test.yml
@@ -0,0 +1,77 @@
+
+# flow.yaml
+
+appId: xyz.blueskyweb.app
+---
+- launchApp
+# Login
+# - runFlow:
+#    when:
+# - tapOn: "Sign In"
+# - tapOn: "Username or email address"
+# - inputText: "ansh.bsky.team"
+# - tapOn: "Password"
+# - inputText: "PASSWORd"
+# - tapOn: "Next"
+# Allow notifications if popup is visible
+# - runFlow:
+#     when:
+#       visible: "Notifications"
+#     commands:
+#       - tapOn: "Allow"
+# Scroll in main feed
+- "scroll"
+- "scroll"
+- "scroll"
+- "scroll"
+- "scroll"
+- "scroll"
+- "scroll"
+- "scroll"
+# Swipe between feeds
+- swipe:
+    direction: "LEFT"
+- swipe:
+    direction: "LEFT"
+- swipe: 
+    direction: "LEFT"
+- swipe:
+    direction: "RIGHT"
+- swipe:
+    direction: "RIGHT"
+- swipe:
+    direction: "RIGHT"
+# Go to Notifications
+- tapOn:
+    id: "viewHeaderDrawerBtn"
+- tapOn: "Notifications"
+- "scroll"
+- "scroll"
+- "scroll"
+- "scroll"
+- "scroll"
+- swipe:
+    direction: "DOWN" # Make header visible
+# Go to Feeds tab
+- tapOn:
+    id: "viewHeaderDrawerBtn"
+- tapOn: "Feeds"
+- scrollUntilVisible:
+    element: "Discover"
+    direction: UP
+- tapOn: "Discover"
+- waitForAnimationToEnd
+- "scroll"
+- "scroll"
+- "scroll"
+- "scroll"
+- "scroll"
+# Click on post
+- tapOn:
+    id: "postText"
+    index: 0
+- "scroll"
+- "scroll"
+- "scroll"
+- "scroll"
+- "scroll"