Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
make tests order-agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
asolntsev committed Nov 22, 2022
1 parent f05b23a commit 56ca8a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/integration/RemoteWebdriverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.io.IOException;
import java.net.URL;

import static com.codeborne.selenide.FileDownloadMode.HTTPGET;
import static com.codeborne.selenide.Selectors.byText;
import static com.codeborne.selenide.Selenide.$;
import static com.codeborne.selenide.Selenide.closeWebDriver;
Expand All @@ -28,6 +29,7 @@ public class RemoteWebdriverTest {
void setUp() {
Selenide.closeWebDriver();
Configuration.proxyEnabled = false;
Configuration.fileDownload = HTTPGET;
}

@Test
Expand Down
3 changes: 3 additions & 0 deletions src/test/java/integration/SelenoidClipboardTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import static com.codeborne.selenide.ClipboardConditions.content;
import static com.codeborne.selenide.Condition.attribute;
import static com.codeborne.selenide.Condition.visible;
import static com.codeborne.selenide.FileDownloadMode.HTTPGET;
import static com.codeborne.selenide.Selenide.$;
import static com.codeborne.selenide.Selenide.clipboard;
import static com.codeborne.selenide.Selenide.closeWebDriver;
Expand All @@ -19,6 +20,8 @@ public class SelenoidClipboardTest {

@BeforeEach
public void prepare() {
Configuration.proxyEnabled = false;
Configuration.fileDownload = HTTPGET;
Configuration.remote = "http://localhost:4444/wd/hub";
open("https://www.w3schools.com/howto/howto_js_copy_clipboard.asp");
$(".snigel-cmp-framework").shouldBe(visible);
Expand Down

0 comments on commit 56ca8a0

Please sign in to comment.