Remove this `if` logic - the test can just fail if this command is run and the button is not displayed.