MDL-68750 analytics: Correct behat test modal checks