.click() may not fire if Playwright thinks the button isn’t fully clickable yet. dispatchEvent('click') bypasses those checks, so it will trigger the microflow.
Even though the button looks clickable to you, Playwright may detect it as still blocked (overlay, animation, transition). So .click() doesn’t fire the event, but dispatchEvent('click') forces it and triggers the microflow.
If you are looking for automation testing , you can try selenium that works perfectly with mendix and I have shared in LinkedIn.[Post Link]