diff options
Diffstat (limited to 'app/test')
-rw-r--r-- | app/test/test_add_word.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py index f4fdb68..db862fc 100644 --- a/app/test/test_add_word.py +++ b/app/test/test_add_word.py @@ -57,5 +57,15 @@ def test_add_word(): elem.click() driver.save_screenshot('./app/test/test_add_word_pic3.png') + + elems = driver.find_elements_by_xpath("//p[@id='new-word']") + driver.save_screenshot('./app/test/test_add_word_pic4.png') + found = 0 + for elem in elems: + if word in elem.text: + found = 1 + break + + assert found == 1 driver.quit() |