def test_order_status_changed(self): target_url = "%s/admin/order_manager/order/%s" % ( self.configuration['base_url'], self.order_id) order_edit_page = OrderEdit(self.browser, target_url) order_fields = order_edit_page.get_fields() self.validate( (order_fields['status'] == 2), error_message= "Order status was not changed to 'Payment Received'. %s" % order_fields['status'])
def testEditOrder(self): alt_quantity = self.configuration['order_tests']['alt_quantity'] # Edit the order's first name target_url = "%s/admin/order_manager/order/%s" % (self.configuration['base_url'], self.order_id) edit_page = OrderEdit(self.browser, target_url) edit_page.change_input_field_by_id(field_id='id_quantity', new_value=alt_quantity) edit_page.save_changes() # Verify that the changes were saved edit_page.refresh() fields = edit_page.get_fields() self.validate((fields['quantity'] == alt_quantity), "Edit was not successfully saved.")
def test_order_status_changed(self): target_url = "%s/admin/order_manager/order/%s" % (self.configuration['base_url'], self.order_id) order_edit_page = OrderEdit(self.browser, target_url) order_fields = order_edit_page.get_fields() self.validate((order_fields['status'] == 2), error_message="Order status was not changed to 'Payment Received'. %s" % order_fields['status'])
def test_order_status_changed(self): page = OrderEdit(self.browser, self.configuration['base_url']) page.open(self.order_id) fields = page.get_fields() assert fields['status'] == 2, "Order status was not changed to 'Payment Received'. %s" % fields['status']