fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

MessageBar doesn't render content in tests

Open rosergeev opened this issue 5 years ago • 4 comments

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 avatar Feb 16 '21 04:02 rosergeev

@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?

gouttierre avatar Apr 06 '21 12:04 gouttierre

@tomi-msft , It's a regression. No issues in prod with MessageBar.

rosergeev avatar Apr 07 '21 08:04 rosergeev

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.

spxis avatar Apr 09 '21 04:04 spxis

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.

msft-fluent-ui-bot avatar Oct 15 '21 02:10 msft-fluent-ui-bot