|
@@ -11,11 +11,11 @@ def test_quasar_colors(screen: Screen):
|
|
|
b5 = ui.button(color='#ff0000')
|
|
|
|
|
|
screen.open('/')
|
|
|
- assert screen.find_by_id(b1).value_of_css_property('background-color') == 'rgba(88, 152, 212, 1)'
|
|
|
- assert screen.find_by_id(b2).value_of_css_property('background-color') == 'rgba(0, 0, 0, 0)'
|
|
|
- assert screen.find_by_id(b3).value_of_css_property('background-color') == 'rgba(239, 83, 80, 1)'
|
|
|
- assert screen.find_by_id(b4).value_of_css_property('background-color') == 'rgba(239, 68, 68, 1)'
|
|
|
- assert screen.find_by_id(b5).value_of_css_property('background-color') == 'rgba(255, 0, 0, 1)'
|
|
|
+ assert screen.find_element(b1).value_of_css_property('background-color') == 'rgba(88, 152, 212, 1)'
|
|
|
+ assert screen.find_element(b2).value_of_css_property('background-color') == 'rgba(0, 0, 0, 0)'
|
|
|
+ assert screen.find_element(b3).value_of_css_property('background-color') == 'rgba(239, 83, 80, 1)'
|
|
|
+ assert screen.find_element(b4).value_of_css_property('background-color') == 'rgba(239, 68, 68, 1)'
|
|
|
+ assert screen.find_element(b5).value_of_css_property('background-color') == 'rgba(255, 0, 0, 1)'
|
|
|
|
|
|
|
|
|
def test_enable_disable(screen: Screen):
|