From 1786651aa5c2a1a785aae0d63483fc1c6200672e Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Wed, 14 Jul 2021 18:06:12 +0800 Subject: [PATCH] test_add_word.py: use a longer word --- app/test/test_add_word.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py index 403e25a..3bff1a4 100644 --- a/app/test/test_add_word.py +++ b/app/test/test_add_word.py @@ -45,8 +45,8 @@ def test_add_word(): 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 or len(word) < 5 or has_punctuation(word): - word = random.choice(essay_content.split()) + while 'font>' in word or 'br>' in word or 'p>' in word or len(word) < 6 or has_punctuation(word): + word = random.choice(essay_content.split()) elem.send_keys(word)