diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py index 9a46fe3..05f7961 100644 --- a/app/test/test_add_word.py +++ b/app/test/test_add_word.py @@ -19,6 +19,7 @@ def has_punctuation(s): def test_add_word(): try: driver.get(HOME_PAGE) + print(driver.page_source) assert 'English Pal -' in driver.page_source # login diff --git a/app/test/test_next_essay.py b/app/test/test_next_essay.py index 98d748c..bed6a92 100644 --- a/app/test/test_next_essay.py +++ b/app/test/test_next_essay.py @@ -42,7 +42,7 @@ def test_next(): # click Next diff = 0 - for i in range(5): + for i in range(10): elem = driver.find_element_by_link_text('下一篇') elem.click() driver.save_screenshot('./app/test/test_next_essay_pic1.png')