Skip to content
Snippets Groups Projects
Commit 9b33bdfc authored by Valera Rozuvan's avatar Valera Rozuvan
Browse files

Fix for test.

parent bb5c70df
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment