From 95870242f1599500cdf49eadda0e884207bb8907 Mon Sep 17 00:00:00 2001 From: Andrei Solntsev Date: Mon, 13 Sep 2021 18:28:35 +0300 Subject: [PATCH] release 1.1.6: upgrade to Selenide 5.24.3 --- CHANGELOG.md | 3 +++ README.md | 2 +- build.gradle | 2 +- gradle/dependencies.gradle | 7 ++++--- src/test/java/integration/FileDownloadTest.java | 12 ++++++------ src/test/java/integration/SelenoidSelenideTest.java | 6 +++--- 6 files changed, 18 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 954b746..d797589 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 1.1.6 (released 13.09.2021) +* upgrade to Selenide 5.24.3 + ## 1.1.5 (released 29.08.2021) * upgrade to Selenide 5.24.0 diff --git a/README.md b/README.md index 7ad57cd..430ffd9 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Currently the plugin supports only one feature: We are going to implement more features, like using clipboard, reading logs and videos etc. ## Usage -1. Import `org.selenide:selenide-selenoid:1.1.4` +1. Import `org.selenide:selenide-selenoid:1.1.6` 2. Set `Configuration.fileDownload = FOLDER;` 3. Use method `$.download()` as usually. diff --git a/build.gradle b/build.gradle index eeeb509..175b438 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { group = 'org.selenide' archivesBaseName = 'selenide-selenoid' -version = '1.1.5' +version = '1.1.6' apply from: rootProject.file('gradle/compilation.gradle') apply from: rootProject.file('gradle/dependencies.gradle') diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle index 1aa23a4..384ffea 100644 --- a/gradle/dependencies.gradle +++ b/gradle/dependencies.gradle @@ -1,9 +1,9 @@ buildscript { ext.versions = [ - selenide: '5.24.0', + selenide: '5.24.3', browserupproxy: '2.1.2', - netty: '4.1.67.Final', - junit: '5.7.2', + netty: '4.1.68.Final', + junit: '5.8.0', assertj: '3.20.2', slf4j: '1.7.32' ] @@ -14,6 +14,7 @@ dependencies { implementation('org.apache.httpcomponents.client5:httpclient5:5.1') { exclude group: 'org.apache.httpcomponents.core5', module: 'httpcore5-h2' } + implementation("commons-io:commons-io:2.11.0") testRuntimeOnly("com.browserup:browserup-proxy-core:${versions.browserupproxy}") testRuntimeOnly("io.netty:netty-all:${versions.netty}") testRuntimeOnly("io.netty:netty-codec:${versions.netty}") diff --git a/src/test/java/integration/FileDownloadTest.java b/src/test/java/integration/FileDownloadTest.java index d92dcd3..8fa97b6 100644 --- a/src/test/java/integration/FileDownloadTest.java +++ b/src/test/java/integration/FileDownloadTest.java @@ -38,10 +38,10 @@ void downloadFileInSelenoid() throws IOException { Configuration.remote = "http://localhost:4444/wd/hub"; open("https://the-internet.herokuapp.com/download"); - File file = $(byText("some-file.txt")).download(withExtension("txt")); + File file = $(byText("a.txt")).download(withExtension("txt")); - assertThat(file.getName()).isEqualTo("some-file.txt"); - assertThat(readFileToString(file, UTF_8)).startsWith("{\\rtf"); + assertThat(file.getName()).isEqualTo("a.txt"); + assertThat(readFileToString(file, UTF_8)).startsWith("hello"); } @Test @@ -49,9 +49,9 @@ void downloadFileInLocalBrowser() throws IOException { Configuration.remote = null; open("https://the-internet.herokuapp.com/download"); - File file = $(byText("some-file.txt")).download(withExtension("txt")); + File file = $(byText("a.txt")).download(withExtension("txt")); - assertThat(file.getName()).isEqualTo("some-file.txt"); - assertThat(readFileToString(file, UTF_8)).startsWith("{\\rtf"); + assertThat(file.getName()).isEqualTo("a.txt"); + assertThat(readFileToString(file, UTF_8)).isEqualTo("hello"); } } diff --git a/src/test/java/integration/SelenoidSelenideTest.java b/src/test/java/integration/SelenoidSelenideTest.java index 5a7039d..ec9db73 100644 --- a/src/test/java/integration/SelenoidSelenideTest.java +++ b/src/test/java/integration/SelenoidSelenideTest.java @@ -52,9 +52,9 @@ void downloadViaProxy() throws IOException { private void checkDownload() throws IOException { for (int i = 0; i < 8; i++){ open("https://the-internet.herokuapp.com/download"); - File file = $(byText("some-file.txt")).download(); - assertThat(file).hasName("some-file.txt"); - assertThat(readFileToString(file, UTF_8)).startsWith("{\\rtf"); + File file = $(byText("a.txt")).download(); + assertThat(file).hasName("a.txt"); + assertThat(readFileToString(file, UTF_8)).isEqualTo("hello"); } } }