diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-07 20:09:28 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-07 20:09:28 +0800 |
commit | 147a3ae7d75c4c6dffb3037c4c0bcbee3fb17d2f (patch) | |
tree | b4a4409f1810e7908d48ac78cbe1b1bdbde08503 | |
parent | 50f7661c832cf86df467384868c52a1ed579819b (diff) |
app/test/test_add_word.py: word should have more characters (revision).
-rw-r--r-- | app/test/test_add_word.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py index 26f7211..0c5bef1 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 and len(word) > 3: + while 'font>' in word or 'br>' in word or 'p>' in word or len(word) < 5: word = random.choice(essay_content.split()) elem.send_keys(word) driver.save_screenshot('./app/test/test_add_word_pic1.png') |