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
50 changes: 50 additions & 0 deletions .maestro/flows/002_browse_lessons_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,54 @@ onFlowComplete:
- assertVisible: "Hello World Lesson"
- tapOn: "Close"

# Navigate to the App list
- tapOn: "Apps"
- assertVisible:
id: "app_title"
text: "Apps"
- tapOn: "My app"

# Enter Edit Mode
- tapOn:
id: "floating_action_button" # Edit Button

# Modify Title
- tapOn:
id: "title_name"
- eraseText
- inputText: "Metadata Test App"

# 5. Modify Description (Crucial for Search test)
- tapOn:
id: "input_description"
- eraseText
- inputText: "UniqueKeyword for testing"

# Modify Metadata
- tapOn: "Subject" # Taps the dropdown
- tapOn: "Literacy" # Changed to specific subject
- tapOn: "Grade" # Taps the dropdown
- tapOn: "Grade 4-6" # Changed level

# Save Changes
- tapOn: "Save"
- assertVisible: "Metadata Test App" # Verify return to details or list

# --- VERIFICATION PHASE ---

# Verify Visual Metadata (Curriculum Alignment)
- assertVisible: "Literacy"
- assertVisible: "Grade 4-6"

# Verify Search by TITLE
- tapOn:
id: "search_icon"
- inputText: "Metadata Test App"
- assertVisible: "Metadata Test App"

# Verify Search by DESCRIPTION
- tapOn:
id: "clear_all" # Clear previous search
- inputText: "UniqueKeyword"
- assertVisible: "Metadata Test App" # The app should appear even searching by description

Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,19 @@ A user can add app via link and browse available lessons across multiple integra
29. Click on Open button.
30. Verify user able to see lesson content.
31. Click on Close icon.
32. Verify user directed back to the Lesson detail screen.
32. Go to Apps screen and verify user directed back to the Apps screen.
33. Tap on the Edit button on the App Detail screen.
34. Verify the Edit App screen is displayed.
35. Tap on the Title field and enter a test title.
36. Tap on the Description field and append a unique keyword.
37. Tap on the Subject dropdown and change the selection.
38. Tap on the Grade dropdown and change the selection to "Grade 4-6".
39. Tap on the Save button to save changes.
40. Verify the user is returned to the Lesson Detail screen.
41. Verify Curriculum Alignment: Assert that the new Subject (Science) and Grade (Grade 4-6) are now visible on the screen.
42. Navigate back to the Apps home screen.
43. Tap on the Search icon.
44. Enter the keyword added in title
45. Verify Search Results: Assert that the modified lesson appears in the search results.
46. Enter the unique keyword added in title
47. Verify Search Results: Assert that the modified lesson appears in the search results list, confirming the new metadata is indexed.