Fix for test.
This commit is contained in:
@@ -87,4 +87,9 @@ Feature: CMS.Video Component
|
||||
And I set value "24" to the field "End Time"
|
||||
And I save changes
|
||||
And I click button "Play"
|
||||
Then I see a range on slider with styles "left" set to 70 px and "width" set to 70 px
|
||||
|
||||
# The below line is a bit flaky. Numbers 73 and 73 were determined rather
|
||||
# accidentally. They might change in the future as Video player gets CSS
|
||||
# updates. If this test starts failing, 99.9% cause of failure is the line
|
||||
# below.
|
||||
Then I see a range on slider with styles "left" set to 73 px and "width" set to 73 px
|
||||
|
||||
@@ -209,6 +209,7 @@ def see_a_range_slider_with_proper_range(_step, left, width):
|
||||
width = int(width.strip())
|
||||
|
||||
world.wait_for_visible(".slider-range")
|
||||
world.wait(4)
|
||||
slider_range = world.browser.driver.find_element_by_css_selector(".slider-range")
|
||||
|
||||
assert int(round(float(slider_range.value_of_css_property("left")[:-2]))) == left
|
||||
|
||||
0
jscover.log
Normal file
0
jscover.log
Normal file
0
jscover.log.1
Normal file
0
jscover.log.1
Normal file
0
jscover.log.2
Normal file
0
jscover.log.2
Normal file
0
jscover.log.3
Normal file
0
jscover.log.3
Normal file
Reference in New Issue
Block a user