visitSite("openshift")
setTimeout(() => {
displayMessage('Shift Assigned', 'success');
}, 1000);
// HOWEVER, I prefer to have the functionality of displaying a success message and navigating between screens separated into distinct functions. The visitSite function is responsible for navigating from one screen to another.
visitSite("openshift");
displayMessage('Shift Assigned', 'success');