Skip to content

Conversation

@kdeakinstructure
Copy link
Contributor

@kdeakinstructure kdeakinstructure commented Jan 5, 2026

Fix E2E tests.

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

  • Run E2E test suite

refs: MBL-19651
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.

Summary

This PR refactors help menu test files by extracting hardcoded strings into centralized constants (StringConstants.HelpMenu). This is a positive change that improves maintainability and reduces duplication across Parent, Student, and Teacher app tests.

Positive Observations

  • Consistent approach across all three apps (Parent, Student, Teacher)
  • Proper use of nested objects for app-specific constants (e.g., HelpMenu.Student, HelpMenu.Teacher)
  • Reduces magic strings in test code, making it easier to maintain when UI text changes
  • Good test coverage for help menu functionality

Issues Found

  • Mock data subtitle change unrelated to refactoring (AccountEndpoints.kt:170, 221) - The "Ask the Community" subtitle was changed from "Get help from a Canvas expert" to a much longer text. This appears to be a content change mixed into a refactoring PR. Should verify this aligns with the constant definition and consider separating content changes from refactoring.

  • Unrelated test change (AssignmentDetailsPage.kt:250) - Changed onView() to waitForView() for attempt spinner assertion. This timing fix is unrelated to string constant refactoring and should be in a separate PR or explained in the description.

  • Unrelated test stub (AssignmentsE2ETest.kt:78) - Added @Stub annotation to a failing test. While this may be necessary, it's unrelated to the help menu refactoring and should be documented or separated.

Verification Needed

To complete this review, I would need to verify:

  1. The actual definitions in StringConstants.HelpMenu to ensure all constants are properly defined
  2. Whether the mock data changes align with the constant definitions
  3. Whether the unrelated changes were intentional bundling or accidental commits

Code Quality

The refactoring work itself is clean and follows good practices. The main concern is the scope creep with unrelated changes mixed into what should be a focused refactoring PR.

text="Ask the Community",
subtext="Get help from a Canvas expert"
subtext="Explore guides, updates, blogs, forums, and resources to help you find answers, collaborate with others, and keep learning."
),
Copy link

Choose a reason for hiding this comment

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

This subtitle change modifies the expected mock data but I don't see the corresponding constant definition in StringConstants.HelpMenu being updated in this PR.

The subtitle changed from:

  • "Get help from a Canvas expert"

To:

  • "Explore guides, updates, blogs, forums, and resources to help you find answers, collaborate with others, and keep learning."

This appears to be an intentional content change, but:

  1. Was this change intentional for this PR, or should it be in a separate PR?
  2. If the teacher tests are using HelpMenu.Teacher.ASK_COMMUNITY_SUBTITLE, does that constant have this new longer text?
  3. This change is duplicated at line 170 - both occurrences should be consistent with the constant definition.


fun assertAttemptSpinnerDisplayed() {
onView(withId(R.id.attemptSpinner)).assertDisplayed()
waitForView(withId(R.id.attemptSpinner)).assertDisplayed()
Copy link

Choose a reason for hiding this comment

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

This change from onView() to waitForView() seems unrelated to the string constant refactoring. While it may fix a timing issue, it should either:

  1. Be in a separate PR with its own context/explanation
  2. Be mentioned in the PR description if it's addressing a specific flakiness issue discovered during testing

Can you clarify if this is related to the help menu string constants work?


@E2E
@Test
@Stub("Worker issue, failing on CI, needs to be fixed in ticket MBL-18749")
Copy link

Choose a reason for hiding this comment

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

The addition of @Stub annotation for this test appears unrelated to the help menu string constants refactoring. This should be in a separate commit or PR focused on test stability issues.

If this test was already failing and you're just documenting it, that's fine, but it should be clearly mentioned in the PR description as a separate change.

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

📊 Code Coverage Report

✅ Student

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

✅ Teacher

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

✅ Pandautils

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

📈 Overall Average

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

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

🧪 Unit Test Results

✅ 📱 Parent App

  • Tests: 310 total, 0 failed, 0 skipped
  • Duration: 30.736s
  • Success Rate: 100%

✅ 📱 Student App

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

✅ 📱 Teacher App

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

✅ 🌅 Horizon

  • Tests: 449 total, 0 failed, 0 skipped
  • Duration: 34.368s
  • Success Rate: 100%

✅ 📦 Submodules

  • Tests: 2515 total, 0 failed, 0 skipped
  • Duration: 39.213s
  • Success Rate: 100%

📊 Summary

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

Last updated: Tue, 06 Jan 2026 20:57:57 GMT

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

Parent Install Page

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

Teacher Install Page

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

Student Install Page

@kdeakinstructure kdeakinstructure merged commit 0005f38 into master Jan 7, 2026
42 of 48 checks passed
@kdeakinstructure kdeakinstructure deleted the MBL-19651-fix-e2e-tests branch January 7, 2026 00:31
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.

4 participants