From 46dc9328cfdc7abfd7a043b0ba8f12de971fc71a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B0=8F=E9=A3=9E?= <2624970078@qq.com> Date: Sun, 13 Jun 2021 11:10:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8test=5Fadd=E6=B5=8B=E8=AF=95=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E9=87=8C=E6=B7=BB=E5=8A=A0=E8=BE=93=E5=87=BA=E8=AF=AD?= =?UTF-8?q?=E5=8F=A5=EF=BC=8C=E5=AF=BB=E6=89=BE=E6=B5=8B=E8=AF=95=E4=B8=8D?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E7=9A=84=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/test/test_add_word.py | 1 + app/test/test_next_essay.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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')