Skip to content

Commit

Permalink
#125: Fix an error in SelenideAddonsTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Pfotenhauer committed Jul 1, 2020
1 parent fa1a448 commit 821f4df
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ private RuntimeException getWrappedThrowable(String message)
public void testRightHorizontalDragAndDropUntilCondition()
{
Selenide.open("https://demos.telerik.com/kendo-ui/slider/index");
$("#onetrust-accept-btn-handler").shouldBe(visible).click();

SelenideElement slider = $(".balSlider a[role=slider]");
SelenideAddons.dragAndDropUntilCondition(slider, slider, 40, 0, 3000, 23, Condition.attribute("aria-valuenow", "8"));
Expand All @@ -421,6 +422,7 @@ public void testRightHorizontalDragAndDropUntilCondition()
public void testLeftHorizontalDragAndDropUntilCondition()
{
Selenide.open("https://demos.telerik.com/kendo-ui/slider/index");
$("#onetrust-accept-btn-handler").shouldBe(visible).click();

SelenideElement slider = $(".balSlider a[role=slider]");
SelenideAddons.dragAndDropUntilCondition(slider, slider, -40, 0, 3000, 23, Condition.attribute("aria-valuenow", "-8"));
Expand All @@ -432,6 +434,7 @@ public void testLeftHorizontalDragAndDropUntilCondition()
public void testUpVerticalDragAndDropUntilCondition()
{
Selenide.open("https://demos.telerik.com/kendo-ui/slider/index");
$("#onetrust-accept-btn-handler").shouldBe(visible).click();

SelenideElement slider = $("#equalizer .k-slider-vertical:first-child a");
SelenideAddons.dragAndDropUntilCondition(slider, slider, 0, -10, 3000, 23, Condition.attribute("aria-valuenow", "16"));
Expand All @@ -443,6 +446,7 @@ public void testUpVerticalDragAndDropUntilCondition()
public void testDownVerticalDragAndDropUntilCondition()
{
Selenide.open("https://demos.telerik.com/kendo-ui/slider/index");
$("#onetrust-accept-btn-handler").shouldBe(visible).click();

SelenideElement slider = $("#equalizer .k-slider-vertical:first-child a");
SelenideAddons.dragAndDropUntilCondition(slider, slider, 0, 10, 3000, 23, Condition.attribute("aria-valuenow", "-6"));
Expand All @@ -454,6 +458,7 @@ public void testDownVerticalDragAndDropUntilCondition()
public void testDragAndDropAssertionError()
{
Selenide.open("https://demos.telerik.com/kendo-ui/slider/index");
$("#onetrust-accept-btn-handler").shouldBe(visible).click();

SelenideElement slider = $(".balSlider a[role=slider]");
SelenideAddons.dragAndDropUntilCondition(slider, slider, -10, 0, 3000, -1, Condition.attribute("aria-valuenow", "-16"));
Expand All @@ -463,6 +468,7 @@ public void testDragAndDropAssertionError()
public void testLeftHorizontalDragAndDropUntilText()
{
Selenide.open("https://demos.telerik.com/kendo-ui/slider/index");
$("#onetrust-accept-btn-handler").shouldBe(visible).click();

SelenideElement slider = $(".balSlider a[role=slider]");
leftHorizontalDragAndDropUntilText(slider, slider, -40, "aria-valuenow", "-8");
Expand Down

0 comments on commit 821f4df

Please sign in to comment.