1
0
Fork 0

test_add_word.py: use a longer word

Lanhui-add-articles
Hui Lan 2021-07-14 18:06:12 +08:00
parent 0e77dc449d
commit 1786651aa5
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ def test_add_word():
elem = driver.find_element_by_id('selected-words') elem = driver.find_element_by_id('selected-words')
word = random.choice(essay_content.split()) 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): 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()) word = random.choice(essay_content.split())
elem.send_keys(word) elem.send_keys(word)