Skip to content

Conversation

@kdeakinstructure
Copy link
Contributor

Fix help menu E2E tests (strings and some urls has changed on backend).

refs: MBL-19665
affects: Student, Teacher, Parent
release note: -

  • Run E2E test suite

refs: MBL-19665
affects: Student, Teacher, Parent
release note: -
Copy link

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

This PR updates help menu URLs and string constants across the Parent, Student, and Teacher apps. The changes migrate from old Canvas community URLs to new Instructure community URLs and update Play Store links for the "Share Love" feature.

Positive Aspects

  • Good consistency in updating URLs across all three apps (Parent, Student, Teacher)
  • Appropriate use of market:// scheme for Play Store links
  • String improvements add proper punctuation to subtitles for better consistency

Issues to Address

  • Inconsistent capitalization in StringConstants.kt:54 - "conferences in Canvas" uses lowercase "canvas" while it should be capitalized as a proper noun
  • Test reliability concern in HelpPage.kt:143-147 - Changing from allOf to anyOf makes intent matching less strict, which could lead to false positives. This needs clarification or documentation about why the change is necessary.

Additional Observations

The test changes appear related to supporting the new market:// URL scheme, which may behave differently than https:// URLs in intent matching. If this is the reason for the anyOf change, it would be helpful to document this with a code comment for future maintainers.

Overall, this is a straightforward URL update, but the test assertion change needs careful consideration to ensure we're not reducing test effectiveness.

object Teacher {
const val CONFERENCE_GUIDES_TITLE = "Conference Guides for Remote Classrooms"
const val CONFERENCE_GUIDES_SUBTITLE = "Get help on how to use and configure conferences in canvas."
const val CONFERENCE_GUIDES_SUBTITLE = "Get help on how to use and configure conferences in Canvas."
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent capitalization: The subtitle says "conferences in Canvas" but uses lowercase "canvas". Consider using "Canvas" with a capital C to match the proper noun usage throughout the codebase and the title above it.

Comment on lines +143 to +147
val expectedIntent = CoreMatchers.anyOf(
CoreMatchers.allOf(
IntentMatchers.hasAction(android.content.Intent.ACTION_VIEW),
IntentMatchers.hasData(expectedURL)
),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test reliability concern: Changing from allOf to anyOf makes the test less strict. This means the test will pass if either the ACTION_VIEW intent OR the bundled extras match, rather than requiring all conditions to be true.

This could lead to false positives where the wrong URL is opened but the test still passes. Consider:

  1. Keeping allOf if you need to verify both conditions
  2. Adding a comment explaining why anyOf is necessary (e.g., if different browsers/Android versions handle intents differently)
  3. Ensuring this change is intentional for the new Play Store URLs that use market:// scheme

@github-actions
Copy link

🧪 Unit Test Results

✅ 📱 Parent App

  • Tests: 309 total, 0 failed, 0 skipped
  • Duration: 29.481s
  • Success Rate: 100%

✅ 📱 Student App

  • Tests: 1225 total, 0 failed, 0 skipped
  • Duration: 0.000s
  • Success Rate: 100%

✅ 📱 Teacher App

  • Tests: 369 total, 0 failed, 0 skipped
  • Duration: 32.212s
  • Success Rate: 100%

✅ 🌅 Horizon

  • Tests: 490 total, 0 failed, 0 skipped
  • Duration: 33.593s
  • Success Rate: 100%

✅ 📦 Submodules

  • Tests: 2601 total, 0 failed, 0 skipped
  • Duration: 42.594s
  • Success Rate: 100%

📊 Summary

  • Total Tests: 4994
  • Failed: 0
  • Skipped: 0
  • Status: ✅ All tests passed!

Last updated: Fri, 16 Jan 2026 19:00:05 GMT

@github-actions
Copy link

📊 Code Coverage Report

✅ Student

  • PR Coverage: 43.52%
  • Master Coverage: 43.52%
  • Delta: +0.00%

✅ Teacher

  • PR Coverage: 25.61%
  • Master Coverage: 25.61%
  • Delta: +0.00%

✅ Pandautils

  • PR Coverage: 22.97%
  • Master Coverage: 22.97%
  • Delta: +0.00%

📈 Overall Average

  • PR Coverage: 30.70%
  • Master Coverage: 30.70%
  • Delta: +0.00%

@github-actions
Copy link

Parent Install Page

@github-actions
Copy link

Teacher Install Page

@github-actions
Copy link

Student Install Page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants