Skip to content

Conversation

@kdeakinstructure
Copy link
Contributor

@kdeakinstructure kdeakinstructure commented Jan 13, 2026

Extend testHelpMenuAskYourInstructorMessage E2E test with checking message with multiple teachers.

refs: MBL-19148
affects: Student
release note: -

  • Run E2E test suite

…ssage with multiple teachers.

refs: MBL-19148
affects: Student
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 enhances the testHelpMenuAskYourInstructorMessage E2E test to verify that when a student uses "Ask Your Instructor", all instructors in the course receive the message individually (as separate conversations), not just the first one. This is a valuable test improvement that validates an important aspect of the messaging feature.

Positive Feedback

Excellent test coverage expansion - The test now validates the multi-teacher scenario, which is a realistic use case
Thorough verification - Checks both teachers receive messages individually and that conversations are properly isolated (teacher1 doesn't see teacher2's conversation and vice versa)
Good test structure - The login/logout flow for switching between teachers is well-implemented
Comprehensive assertions - Verifies recipients, subjects, and message content for both teacher perspectives

Issues to Address

  • Variable naming clarity (line 554): recipientListWithSecondTeacher could be clearer - these represent separate conversations, not cumulative recipients
  • Log message accuracy (line 556): Log states question is sent to "the instructor" (singular) but behavior now sends to all instructors
  • Potential race condition (line 566): Asserting both conversations exist in sent folder - verify assertion methods handle async message delivery

Code Quality

The changes follow good testing practices with clear logging at each step. The test is well-structured and easy to follow. Minor improvements in naming and documentation would make this even better.

Test Coverage

Strong improvement in test coverage for the multi-instructor scenario. This will help catch regressions in the "Ask Your Instructor" feature's broadcast behavior.

Overall, this is a solid enhancement to the test suite. The inline comments contain specific suggestions for improvement.

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

📊 Code Coverage Report

✅ Student

  • PR Coverage: 43.51%
  • Master Coverage: 43.51%
  • 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.68%
  • Master Coverage: 30.68%
  • Delta: +0.00%

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

🧪 Unit Test Results

✅ 📱 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: 32.048s
  • Success Rate: 100%

✅ 🌅 Horizon

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

✅ 📦 Submodules

  • Tests: 2556 total, 0 failed, 0 skipped
  • Duration: 59.315s
  • Success Rate: 100%

📊 Summary

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

Last updated: Wed, 14 Jan 2026 08:56:52 GMT

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

Student Install Page

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

Teacher Install Page

@kdeakinstructure kdeakinstructure merged commit 4b0711e into master Jan 14, 2026
24 of 27 checks passed
@kdeakinstructure kdeakinstructure deleted the MBL-19148-extend-ask-instructuro-e2e-to-check-multiple-teachers-get-message branch January 14, 2026 12:15
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.

3 participants