refactoring add-to-cart-simple.js test on the EV local project (has if, else if statements)