Skip to content

Commit

Permalink
#102: DebugUtilsTest is flaky - increased visible time of highlightin…
Browse files Browse the repository at this point in the history
…g boxes
  • Loading branch information
Marcel Pfotenhauer committed Dec 20, 2019
1 parent 92dba60 commit 8dcba02
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/test/java/com/xceptance/neodymium/util/DebugUtilsTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package com.xceptance.neodymium.util;

import static com.codeborne.selenide.Condition.exist;
import static com.codeborne.selenide.Condition.visible;
import static com.codeborne.selenide.Selenide.$;
import static com.codeborne.selenide.Selenide.$$;

import java.util.List;

import org.junit.Assert;
Expand All @@ -14,19 +19,15 @@
import com.xceptance.neodymium.NeodymiumRunner;
import com.xceptance.neodymium.module.statement.browser.multibrowser.Browser;

import static com.codeborne.selenide.Condition.exist;
import static com.codeborne.selenide.Condition.visible;

import static com.codeborne.selenide.Selenide.$;
import static com.codeborne.selenide.Selenide.$$;

@RunWith(NeodymiumRunner.class)
@Browser("Chrome_headless")
public class DebugUtilsTest
{
@Test
public void testHighlighting()
{
Neodymium.configuration().setProperty("neodymium.debugUtils.highlight.duration", "500");

Selenide.open("https://blog.xceptance.com/");
DebugUtils.injectJavaScript();
assertJsSuccessfullyInjected();
Expand All @@ -49,6 +50,8 @@ public void testHighlighting()
@Test
public void testHighlightingWithoutImplicitWaitTime()
{
Neodymium.configuration().setProperty("neodymium.debugUtils.highlight.duration", "500");

Selenide.open("https://blog.xceptance.com/");
DebugUtils.injectJavaScript();
assertJsSuccessfullyInjected();
Expand Down Expand Up @@ -103,6 +106,7 @@ public void testWaiting()
public void testIFrames() throws Exception
{
Neodymium.configuration().setProperty("neodymium.debugUtils.highlight", "true");
Neodymium.configuration().setProperty("neodymium.debugUtils.highlight.duration", "750");

Selenide.open("https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select");
Neodymium.getDriver().switchTo().frame("iframeResult");
Expand Down

0 comments on commit 8dcba02

Please sign in to comment.