summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2021-02-07 20:03:19 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2021-02-07 20:03:19 +0800
commit50f7661c832cf86df467384868c52a1ed579819b (patch)
treecdff941e849d8cda207168138e8280ade7cb4aa1
parent7daf5c0080f0f082fea676ec5fa96621a68577dc (diff)
app/test/test_add_word.py: word should have more characters.
-rw-r--r--app/test/test_add_word.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py
index d194ec7..26f7211 100644
--- a/app/test/test_add_word.py
+++ b/app/test/test_add_word.py
@@ -40,7 +40,7 @@ def test_add_word():
# click Next
elem = driver.find_element_by_id('selected-words')
word = random.choice(essay_content.split())
- while 'font>' in word or 'br>' in word or 'p>' in word:
+ while 'font>' in word or 'br>' in word or 'p>' in word and len(word) > 3:
word = random.choice(essay_content.split())
elem.send_keys(word)
driver.save_screenshot('./app/test/test_add_word_pic1.png')