Repository navigation
test(learning-dashboard): match the breakout dashboard by its room name - #26424
Conversation
The breakout dashboard test matched the tab title against /Dashboard - Room 1$/, which depends on the app.learningDashboard locale strings: a deployment that renames the dashboard (e.g. to "Engagement Report") fails it although the room's dashboard opened. Only the meeting name identifies the room's dashboard, so match the title's last part.
|
No actionable comments were generated in the recent review. WalkthroughThe breakout dashboard title checks now match titles ending in Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Suggested reviewers: Merge Risk:
|
✅ Automated tests have passed! |
What does this PR do?
Learning Dashboard of a breakout roommatches the dashboard tab by its room name (/ - Room 1$/) instead of/Dashboard - Room 1$/.Closes Issue(s)
None.
Motivation
The title is
<product> - <dashboard name> - <meeting name>, and the first two parts come from locale strings that deployments rename. A deployment that calls it e.g. "Engagement Report" fails the test although the room's dashboard opened. The room name still tells the breakout dashboard apart from the parent's, and from the "Learning Dashboard" / "… - undefined" titles the page shows while loading.How to test
Run
npx playwright test learningdashboard/learningdashboard.spec.ts -g "breakout room"with the stock locale, and withapp.learningDashboard.dashboardTitlerenamed.What I checked: with this change, the test passes with a locale that calls the dashboard "Engagement Report". The new pattern matches
BigBlueButton - Learning Analytics Dashboard - Room 1andBigBlueButton - Engagement Report - Room 1, and not the loading titlesLearning DashboardandBigBlueButton - Learning Analytics Dashboard - undefined.More