Skip to content

RM-73320 Release over_react_test 2.9.4 (render util hotfix)#100

Merged
rmconsole3-wf merged 3 commits into
masterfrom
normalize-render-util
May 5, 2020
Merged

RM-73320 Release over_react_test 2.9.4 (render util hotfix)#100
rmconsole3-wf merged 3 commits into
masterfrom
normalize-render-util

Conversation

@aaronlademann-wf
Copy link
Copy Markdown
Contributor

@aaronlademann-wf aaronlademann-wf commented May 5, 2020

This hotfix addresses two issues recently released from this library:

  1. 4080a46 The throwsPropError* matchers were previously deprecated / replaced by the new logsPropError* matchers. However, the new matchers are only suitable for testing PropErrors that happen within UiComponent2.propTypes. PropErrors can still be thrown elsewhere in components to produce full-blown RTEs - so the old matchers are still useful for testing that.
  2. 9230eb8 The render() utility function had different behavior between UiComponent and UiComponent2 instances when provided with a UiProps instance (a.k.a an uninvoked builder).

@greglittlefield-wf @joebingham-wk @corwinsheahan-wf @sydneyjodon-wk

+ These were previously deprecated / replaced by the new `logsPropError*` matchers.  However, the new matchers are only suitable for testing `PropError`s that happen within `UiComponent2.propTypes`.  `PropError`s can still be thrown elsewhere in components to produce full-blown RTEs - so the old matchers are still useful for testing that.
@aviary-wf
Copy link
Copy Markdown

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@aaronlademann-wf aaronlademann-wf marked this pull request as ready for review May 5, 2020 21:47

test('(UiComponent2)', () {
final renderedInstance = render(Test2());
expect(Test2(getProps(renderedInstance)).children, isEmpty);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I verified that this test fails without the analogous change in react_util.dart

Copy link
Copy Markdown
Contributor

@greglittlefield-wf greglittlefield-wf left a comment

Choose a reason for hiding this comment

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

+10

@aaronlademann-wf
Copy link
Copy Markdown
Contributor Author

@Workiva/release-management-pp

Copy link
Copy Markdown

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

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

+1 from RM

@rmconsole3-wf rmconsole3-wf merged commit 21692fe into master May 5, 2020
@rmconsole3-wf rmconsole3-wf deleted the normalize-render-util branch May 5, 2020 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants