summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2021-02-10 19:58:13 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2021-02-10 19:58:13 +0800
commitd2eae8fad9069c61ba7d698c9fc635938a6bcc12 (patch)
tree3b0766ebbf598147da8f0ae87c57ea7dc1a1b1ce /app
parentba04dd62f619e717da58b9d01c1f0192ab147cd1 (diff)
app/test/test_add_word_and_essay_does_not_change.py: click Next should give us another essay (in most cases).
Diffstat (limited to 'app')
-rw-r--r--app/test/test_add_word_and_essay_does_not_change.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/test/test_add_word_and_essay_does_not_change.py b/app/test/test_add_word_and_essay_does_not_change.py
index 5794dec..caca78d 100644
--- a/app/test/test_add_word_and_essay_does_not_change.py
+++ b/app/test/test_add_word_and_essay_does_not_change.py
@@ -64,15 +64,15 @@ def test_add_word_and_essay_does_not_change():
assert current_essay_content == essay_content
- # click the Next button
+ # click the Next button. Now the essay should change.
elem = driver.find_element_by_xpath('//form[1]//input[1]') # 找到get所有词频按钮
elem.click()
# compare again
- driver.save_screenshot('./app/test/test_add_word_and_essay_does_not_change_pic2.png')
+ driver.save_screenshot('./app/test/test_add_word_and_essay_does_not_change_pic2.png')
elem = driver.find_element_by_id('text-content')
next_essay_content = elem.text
-
+
assert current_essay_content != next_essay_content
-
+
driver.quit()