Browse Source

fix pytests

Falko Schindler 1 năm trước cách đây
mục cha
commit
595955a3ca
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tests/test_color_input.py

+ 1 - 1
tests/test_color_input.py

@@ -12,7 +12,7 @@ def test_entering_color(screen: Screen):
     screen.type(Keys.TAB)
     screen.type('#001100')
     screen.should_contain('content: #001100')
-    button = screen.selenium.find_element(By.CLASS_NAME, 'q-btn')
+    button = screen.find_by_class('q-btn')
     assert button.value_of_css_property('background-color') == 'rgba(0, 17, 0, 1)'