MOB-297

Added network connection with the offline event and a corresponding test. Removed the check based on navigator.connection object.