forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
1appId: app.witchsky
2---
3- runScript:
4 file: ../setupServer.js
5 env:
6 SERVER_PATH: "?users&posts&feeds"
7- runFlow:
8 file: ../setupApp.yml
9- tapOn:
10 id: "e2eSignInAlice"
11
12
13# Navigate to my profile
14- extendedWaitUntil:
15 visible:
16 id: "bottomBarSearchBtn"
17- tapOn:
18 id: "bottomBarProfileBtn"
19
20# Open and close edit profile modal
21- tapOn:
22 id: "profileHeaderEditProfileButton"
23- assertVisible:
24 id: "editProfileModal"
25- tapOn:
26 id: "editProfileCancelBtn"
27- assertNotVisible:
28 id: "editProfileModal"
29
30# Edit display name and description via the edit profile modal
31- tapOn:
32 id: "profileHeaderEditProfileButton"
33- assertVisible:
34 id: "editProfileModal"
35- tapOn:
36 id: "editProfileDisplayNameInput"
37- eraseText
38- inputText: "Alicia"
39- tapOn:
40 id: "editProfileDescriptionInput"
41- eraseText
42- inputText: "One cool hacker"
43- tapOn: "Description"
44- tapOn:
45 id: "editProfileSaveBtn"
46- assertNotVisible:
47 id: "editProfileModal"
48- assertVisible: "Alicia"
49- assertVisible: "One cool hacker"
50
51# Remove display name and description via the edit profile modal
52- tapOn:
53 id: "profileHeaderEditProfileButton"
54- assertVisible:
55 id: "editProfileModal"
56- tapOn:
57 id: "editProfileDisplayNameInput"
58- eraseText
59- tapOn:
60 id: "editProfileDescriptionInput"
61- eraseText
62- tapOn: "Description"
63- tapOn:
64 id: "editProfileSaveBtn"
65- assertNotVisible:
66 id: "editProfileModal"
67- assertVisible: "alice.test"
68- assertNotVisible: "One cool hacker"
69
70# Set avi and banner via the edit profile modal
71- assertVisible:
72 id: "userBannerFallback"
73- tapOn:
74 id: "profileHeaderEditProfileButton"
75- assertVisible:
76 id: "editProfileModal"
77- tapOn:
78 id: "changeBannerBtn"
79- tapOn: "Upload from Library"
80- waitForAnimationToEnd
81- tapOn: "Done"
82- waitForAnimationToEnd
83- tapOn:
84 id: "changeAvatarBtn"
85- tapOn: "Upload from Library"
86- waitForAnimationToEnd
87- tapOn: "Done"
88- waitForAnimationToEnd
89- tapOn:
90 id: "editProfileSaveBtn"
91- assertNotVisible:
92 id: "editProfileModal"
93- assertVisible:
94 id: "userBannerImage"
95
96# # Remove avi and banner via the edit profile modal
97- tapOn:
98 id: "profileHeaderEditProfileButton"
99- assertVisible:
100 id: "editProfileModal"
101- tapOn:
102 id: "changeBannerBtn"
103- tapOn: "Remove Banner"
104- tapOn:
105 id: "changeAvatarBtn"
106- tapOn: "Remove Avatar"
107- tapOn:
108 id: "editProfileSaveBtn"
109- assertNotVisible:
110 id: "editProfileModal"
111- assertVisible:
112 id: "userBannerFallback"