소스 검색

fix pytests

Falko Schindler 1 년 전
부모
커밋
595955a3ca
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)'