def setup_method(self): # The specific URL doesn't matter. We just want something that doesn't 404 on us self.url = EcommerceHelpers.build_url('dashboard/') # pylint: disable=attribute-defined-outside-init
def add_item_to_basket(self, selenium, sku): # Add the item to the basket and start the checkout process selenium.get(EcommerceHelpers.build_url('/basket/add/?sku=' + sku)) assert selenium.find_element_by_css_selector( '.basket-client-side').is_displayed()