When the save button is not visible on screen(which is why we need scroll functionality), then assertOnScreen fails and the function aborts without testing the scroll view. That is why I duplicated the condition and added an else condition to scroll to the bottom.