From a4608db424b98cc72506d9dc1f5628ca07ba4834 Mon Sep 17 00:00:00 2001 From: Lan Hui <1348141770@qq.com> Date: Tue, 9 Apr 2024 13:21:44 +0800 Subject: [PATCH] Correct code comments --- app/test/helper.py | 2 +- app/test/test_add_word.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/helper.py b/app/test/helper.py index c8492a0..2b0deec 100644 --- a/app/test/helper.py +++ b/app/test/helper.py @@ -21,7 +21,7 @@ def signup(URL, driver): elem = driver.find_element_by_id('password2') elem.send_keys(password) - elem = driver.find_element_by_class_name('btn') # 找到"登录"按钮 + elem = driver.find_element_by_class_name('btn') # 找到"注册"按钮 elem.click() try: diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py index ed64899..6526bf0 100644 --- a/app/test/test_add_word.py +++ b/app/test/test_add_word.py @@ -15,7 +15,7 @@ def test_add_word(URL, driver): elem = driver.find_element_by_xpath('//form[1]//button[1]') # 找到"把生词加入我的生词库"按钮 elem.click() - elem = driver.find_element_by_name('add-btn') # 找到加入我的生词簿按钮 + elem = driver.find_element_by_name('add-btn') # 找到"加入我的生词簿"按钮 elem.click() elems = driver.find_elements_by_xpath("//p[@class='new-word']/a")