diff --git a/.maestro/flows/002_browse_lessons_test.yaml b/.maestro/flows/002_browse_lessons_test.yaml index 118cdb93c..aac78e7a0 100644 --- a/.maestro/flows/002_browse_lessons_test.yaml +++ b/.maestro/flows/002_browse_lessons_test.yaml @@ -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 diff --git a/respect-test-end-to-end/test-description/002_browse_lessons_test_description.md b/respect-test-end-to-end/test-description/002_browse_lessons_test_description.md index 32aa39a89..16e1ec920 100644 --- a/respect-test-end-to-end/test-description/002_browse_lessons_test_description.md +++ b/respect-test-end-to-end/test-description/002_browse_lessons_test_description.md @@ -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. \ No newline at end of file +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. \ No newline at end of file