MessageBar doesn't render content in tests
Environment Information
- Package version(s): "^7.160.1"
- Browser and OS versions: Chrome Version 88.0.4324.146 (Official Build) (64-bit). Microsoft Windows Version 20H2 (OS Build 19042.746)
I have written a few tests with MessageBar(snapshot and others). Some of them with static text and some with dynamic. But in tests I can't get rendered content of the MessageBar neither static nor dynamic. message-bar-issue.zip
Actual behavior:
Rendered MessageBar doesn't contain static/dynamic content in tests
Expected behavior:
Content should appear when render component
Priorities and help requested:
Requested priority: Normal
@rosergeev - thank you for filing this and sharing your tests.
@tomi-msft - Would you be able to confirm if this is a regression, or if this behavior - is an issue?
@tomi-msft , It's a regression. No issues in prod with MessageBar.
I can confirm this issue as well for our internal projects. Any MessageBar components do not render span containing innerText. We only get a span that has a TITLE attribute with the content. The MessageBar does render correctly when rendered in a real page, but not via tests. @rosergeev thank you for reporting this as I only started tests on the FluentUI components two days ago and was concerned it was on my end.
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes.
Still require assistance? Please, create a new issue with up-to date details.