Check the alert text

def check_alert(step, text):
    """
    Check the alert text
    """

    try:
        alert = Alert(world.browser)
        assert_equals(alert.text, text)
    except WebDriverException:
        # PhantomJS is kinda poor
        pass