def test_08_invalid_trans_id(self, base_url, selenium):
self.get(selenium, base_url + '/reconcile')
assert self.get_reconciled(selenium) == {}
script = 'reconciled[1234] = [4, "OFXNONE"];'
selenium.execute_script(script)
assert self.get_reconciled(selenium) == {
1234: [4, "OFXNONE"]
}
# click submit button
selenium.find_element_by_id('reconcile-submit').click()
sleep(1)
self.wait_for_jquery_done(selenium)
assert self.get_reconciled(selenium) == {
1234: [4, "OFXNONE"]
}
msg = selenium.find_element_by_id('reconcile-msg')
assert msg.text == 'Error 400: Invalid Transaction ID: 1234'
assert 'alert-danger' in msg.get_attribute('class')
评论列表
文章目录