在test_add测试文件里添加输出语句,寻找测试不通过的原因

Lanhui-add-articles
张小飞 2021-06-13 11:10:56 +08:00
parent d6e64e3465
commit 46dc9328cf
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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')