Skip to content

[MOO-2146]: Intro Screen Native - Fix tests and snapshots (mx 10)#502

Open
MxKevinBeqo wants to merge 3 commits intoversion/mx/10from
moo/MOO-2146-introscreen-snapshots-mx10
Open

[MOO-2146]: Intro Screen Native - Fix tests and snapshots (mx 10)#502
MxKevinBeqo wants to merge 3 commits intoversion/mx/10from
moo/MOO-2146-introscreen-snapshots-mx10

Conversation

@MxKevinBeqo
Copy link
Copy Markdown
Contributor

Checklist

  • Contains unit tests ✅
  • Contains breaking changes ❌
  • Compatible with: MX 10

Feature specific

  • Comply with designs ✅
  • Comply with PM's requirements ✅

This PR contains

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Other (describe): Fix for testing and update snapshot

What is the purpose of this PR?

This PR addresses an issue with intro-screen-native unit test and snapshot content. Specifically fixes an issue with the async rendering by using act(...) to flush out remaining microtasks before running the expect(...) command.

@MxKevinBeqo MxKevinBeqo self-assigned this Apr 30, 2026
@MxKevinBeqo MxKevinBeqo requested a review from a team as a code owner April 30, 2026 13:29
@MxKevinBeqo MxKevinBeqo added Widget test SP 10.24 Mendix Studio Pro 10.24 labels Apr 30, 2026
it("renders", () => {
it("renders", async () => {
const component = render(<IntroScreen {...defaultProps} />);
await act(async () => {
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.

The act(...) here is required because we are using the InteractionManager call to wrap setVisible(true) in IntroScreen.tsx.

stelselim
stelselim previously approved these changes May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SP 10.24 Mendix Studio Pro 10.24 test Widget

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants