0
0
Fork 0

更新 app/test/test_bug551_DingZeYu.py

Bug551-DingZeYu
丁晟晔 2024-05-19 22:51:32 +08:00
parent 9f6a007426
commit d97743649a
1 changed files with 8 additions and 0 deletions

View File

@ -22,4 +22,12 @@ def test_bug551(driver, URL):
actions.move_by_offset(450, 200)
actions.release()
actions.perform()
# 获取选中部分的单词所应用的 CSS 样式
highlighted_word_font_weight = article.value_of_css_property("font-weight")
# 验证高亮显示的 CSS 样式是否符合预期
expected_highlighted_word_font_weight = "300"
assert highlighted_word_font_weight == expected_highlighted_word_font_weight, f"选中部分的单词的字体样式错误"
time.sleep(5)