Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ onFlowComplete:
- assertVisible: "Assignments"
- assertVisible: "People"
- runFlow:
file: "subflows/admin_add_class.yaml"
file: "subflows/add_class.yaml"
env:
CLASSNAME: "New Class"
CLASS_NAME: "New Class"
- assertVisible:
id: "app_title"
text: "New Class"
Expand Down
25 changes: 5 additions & 20 deletions .maestro/flows/001_002_add_user_direct_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,27 +293,12 @@ onFlowComplete:
- assertVisible: "QR code badge"

# Validate Parent User login
- clearState: world.respect.app
- launchApp:
arguments:
respect_directory: ${output.SCHOOL_URL}
- tapOn: "Get Started"
- runFlow:
file: "subflows/get_started_select_school_by_name.yaml"
env:
SCHOOL_NAME: ${SCHOOL_NAME}
- tapOn:
id: "username"
- inputText: "parentauser"
- tapOn:
id : "password"
- inputText: "test123"
- hideKeyboard
- tapOn: "Login"
- runFlow:
when:
visible: "Save password for Respect?"
file: "subflows/save_password_prompt_cancel.yaml"
file: "subflows/school_user_login_flow.yaml"
env:
SCHOOL_NAME: ${SCHOOL_NAME}
USERNAME: "parentauser"
PASSWORD: "test123"
- assertVisible: "Apps"
- tapOn: "People"
- tapOn: "ParentA User"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,57 @@ onFlowComplete:
- runScript:
file: "scripts/teardown.js"
---
- runFlow: "subflows/admin_add_app_and_teacher.yaml"
# Admin setup
- runFlow: "subflows/school_admin_login_flow.yaml"

- clearState: world.respect.app
- launchApp:
arguments:
respect_directory: ${output.SCHOOL_URL}
# Add app, class, then add Student and Teacher to class
- runFlow:
file: "subflows/add_app.yaml"
- runFlow:
file: "subflows/add_class.yaml"
env:
CLASS_NAME: New Class

- tapOn: "Get Started"
# Temporarily disabled: Add Student flow.
# This will be reused later as part of the "Manage Assignment" task.
#- runFlow:
# file: "subflows/add_person_to_a_class.yaml"
# env:
#
# ADD_USER: "Add Student"
# FIRSTNAME: "StudentA"
# LASTNAME: "User"
# GENDER: "Male"
# ROLE: "Student"
# CLASS_NAME: "New Class"
# USERNAME: "studentauser"
# PASSWORD: "test123"
# QR_BADGE_LINK: ${output.SCHOOL_URL}respect_school_link/personqrbadge/id/12312
#- back
#

- runFlow:
file: "subflows/get_started_select_school_by_name.yaml"
file: "subflows/add_person_to_a_class.yaml"
env:
ADD_USER: "Add Teacher"
FIRSTNAME: "TeacherA"
LASTNAME: "User"
GENDER: "Male"
ROLE: "Teacher"
CLASS_NAME: "New Class"
USERNAME: "teacherauser"
PASSWORD: "test123"
- tapOn: "Apps"
- assertVisible:
id: "app_title"
text: "Apps"
- runFlow:
file: "subflows/school_user_login_flow.yaml"
env:
SCHOOL_NAME: ${SCHOOL_NAME}
USERNAME: "teacherauser"
PASSWORD: "test123"

- tapOn:
id: "username"
- inputText: "teacheruser"
- tapOn:
id : "password"
- inputText: "testt1"
- tapOn: "Login"
- runFlow:
when:
visible: "Save password for Respect?"
file: "subflows/save_password_prompt_cancel.yaml"
- assertVisible: "Apps"
- tapOn: "Classes"
- assertVisible:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ appId: world.respect.app
id: "app_title"
text: "Add class"
- tapOn: "Class name*"
- inputText: ${CLASSNAME}
- inputText: ${CLASS_NAME}
- tapOn: "Save"
46 changes: 46 additions & 0 deletions .maestro/flows/subflows/add_person_create_account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
appId: world.respect.app

---
# Add a person and create account
- tapOn: "People"
- assertVisible:
id: "app_title"
text: "People"
- tapOn:
id: "ExpandableFab" # +Person button
- tapOn: "Add new person"
- assertVisible:
id: "app_title"
text: "Add person"
- tapOn: "First names*"
- inputText: ${FIRSTNAME}
- tapOn: "Last name*"
- inputText: ${LASTNAME}
- tapOn: "Gender*"
- tapOn: ${GENDER}
- tapOn:
id: "role"
- tapOn: ${ROLE}
- tapOn: "Save"
- assertVisible:
id: "app_title"
text: ${FIRSTNAME} ${LASTNAME}
- tapOn: "Create account"
- assertVisible:
id: "Username"
text: ${USERNAME}
- runFlow:
when:
notVisible: 'Set password'
commands:
- tapOn: "Password"
- inputText: ${PASSWORD}
- tapOn: "Save"
- runFlow:
when:
visible: 'Set password'
commands:
- tapOn: "Set password"
- tapOn: "Password*"
- inputText: ${PASSWORD}
- tapOn: "Save"
50 changes: 50 additions & 0 deletions .maestro/flows/subflows/add_person_to_a_class.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
appId: world.respect.app

---
# Add a person to a class and create account
- tapOn: ${ADD_USER}
- tapOn: "Add person"
- assertVisible:
id: "app_title"
text: "Add person"
- tapOn: "First names*"
- inputText: ${FIRSTNAME}
- tapOn: "Last name*"
- inputText: ${LASTNAME}
- tapOn: "Gender*"
- tapOn: ${GENDER}
- tapOn:
id: "role"
- tapOn: ${ROLE}
- tapOn: "Save"
- assertVisible:
id: "app_title"
text: ${CLASS_NAME}
- tapOn: ${FIRSTNAME} ${LASTNAME}
- tapOn: "Create account"
- assertVisible:
id: "Username"
text: ${USERNAME}
- runFlow:
when:
notVisible: 'Set password'
commands:
- tapOn: "Password"
- inputText: ${PASSWORD}
- tapOn: "Save"
- runFlow:
when:
visible: 'Set password'
commands:
- tapOn: "Set password"
- tapOn: "Password*"
- inputText: ${PASSWORD}
- tapOn: "Save"
- runFlow:
when:
visible: 'Assign QR code badge'
file: "assign_qr_badge_flow.yaml"
env:
QR_BADGE_LINK: ${QR_BADGE_LINK}


124 changes: 0 additions & 124 deletions .maestro/flows/subflows/admin_add_app_and_teacher.yaml

This file was deleted.

Loading