From 4d11319d138398e130260643d631cb716171a4bd Mon Sep 17 00:00:00 2001 From: pooja Date: Tue, 9 Dec 2025 13:47:16 +0400 Subject: [PATCH 1/2] added test --- .maestro/flows/002_browse_lessons_test.yaml | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.maestro/flows/002_browse_lessons_test.yaml b/.maestro/flows/002_browse_lessons_test.yaml index 118cdb93c..e937d8cfd 100644 --- a/.maestro/flows/002_browse_lessons_test.yaml +++ b/.maestro/flows/002_browse_lessons_test.yaml @@ -50,4 +50,27 @@ onFlowComplete: - assertVisible: "Hello World Lesson" - tapOn: "Close" +- tapOn: "Apps" +- assertVisible: + id: "app_title" + text: "Apps" +- tapOn: "My app" +- tapOn: + id: "floating_action_button" # EDIT button +- tapOn: "My app" +- eraseText +- inputText: "Test App" +- tapOn: "short learning app description.*" +- eraseText +- inputText: "This app is for testing purpose" +- tapOn: "Subject" +- tapOn: "Foundational" +- tapOn: "Grade" +- tapOn: "Grade 1-3" +- tapOn: "Save" +- tapOn: + id: "search_icon" +- inputText: "Test App" +- assertVisible: + id: "test_app" From 2dd53423b29932c011d38a4154db2a59c053a153 Mon Sep 17 00:00:00 2001 From: pooja Date: Tue, 9 Dec 2025 14:35:42 +0400 Subject: [PATCH 2/2] modified metadata test --- .maestro/flows/002_browse_lessons_test.yaml | 53 ++++++++++++++----- .../002_browse_lessons_test_description.md | 17 +++++- 2 files changed, 56 insertions(+), 14 deletions(-) diff --git a/.maestro/flows/002_browse_lessons_test.yaml b/.maestro/flows/002_browse_lessons_test.yaml index e937d8cfd..aac78e7a0 100644 --- a/.maestro/flows/002_browse_lessons_test.yaml +++ b/.maestro/flows/002_browse_lessons_test.yaml @@ -50,27 +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 -- tapOn: "My app" + id: "floating_action_button" # Edit Button + +# Modify Title +- tapOn: + id: "title_name" - eraseText -- inputText: "Test App" -- tapOn: "short learning app description.*" +- inputText: "Metadata Test App" + +# 5. Modify Description (Crucial for Search test) +- tapOn: + id: "input_description" - eraseText -- inputText: "This app is for testing purpose" -- tapOn: "Subject" -- tapOn: "Foundational" -- tapOn: "Grade" -- tapOn: "Grade 1-3" +- 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: "Test App" -- assertVisible: - id: "test_app" + 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