appId: world.respect.app
---
- runFlow: "common/school_admin_login_flow.yaml"
- assertVisible:
    id: "app_title"
    text: "Apps"
- tapOn: "Classes"
- assertVisible:
    id: "app_title"
    text: "Classes"
- tapOn:
    id: "floating_action_button"   #  +Class button
- assertVisible:
    id: "app_title"
    text: "Add class"
- tapOn: "Class name"
- inputText: "New Class"
- tapOn: "Description"
- inputText: "New Course Description"
- tapOn: "Start date"
- runScript:
      file: "common/setDate.js"
- inputText: ${output.yesterdayDate}
- tapOn: "End date"
- runScript:
      file: "common/setDate.js"
- inputText: ${output.tomorrowDate}
- tapOn: "Save"
- assertVisible:
    id: "app_title"
    text: "Classes"
- assertVisible: "New Class"
- tapOn: "New Class"
- assertVisible:
    id: "app_title"
    text: "New Class"
- tapOn:
    id: "floating_action_button"   # Edit button
- assertVisible:
    id: "app_title"
    text: "Edit class"
- tapOn: "New Class"
- eraseText
- inputText: "New Class Edited"
- tapOn: "Save"
- assertVisible:
      id: "app_title"
      text: "Classes"
- assertVisible: "New Class Edited"
- tapOn: "New Class Edited"
- assertVisible: "Description"
- assertVisible: "New Course Description"
- assertVisible: "Start date"
- assertVisible: "End date"

- assertVisible: "Teachers"
- assertVisible: "+ Add teacher"
- assertVisible: "Students"
- assertVisible: "+ Add student"





