Issue #2870746 by Mile23, metzlerd, AbhishekLal: Add JS functional tests for modal example, including validation phase