forked from mrlan/EnglishPal
在test_add测试文件里添加输出语句,寻找测试不通过的原因
parent
d6e64e3465
commit
46dc9328cf
|
@ -19,6 +19,7 @@ def has_punctuation(s):
|
||||||
def test_add_word():
|
def test_add_word():
|
||||||
try:
|
try:
|
||||||
driver.get(HOME_PAGE)
|
driver.get(HOME_PAGE)
|
||||||
|
print(driver.page_source)
|
||||||
assert 'English Pal -' in driver.page_source
|
assert 'English Pal -' in driver.page_source
|
||||||
|
|
||||||
# login
|
# login
|
||||||
|
|
|
@ -42,7 +42,7 @@ def test_next():
|
||||||
|
|
||||||
# click Next
|
# click Next
|
||||||
diff = 0
|
diff = 0
|
||||||
for i in range(5):
|
for i in range(10):
|
||||||
elem = driver.find_element_by_link_text('下一篇')
|
elem = driver.find_element_by_link_text('下一篇')
|
||||||
elem.click()
|
elem.click()
|
||||||
driver.save_screenshot('./app/test/test_next_essay_pic1.png')
|
driver.save_screenshot('./app/test/test_next_essay_pic1.png')
|
||||||
|
|
Loading…
Reference in New Issue