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

Commit

Permalink
release 1.1.6: upgrade to Selenide 5.24.3
Browse files Browse the repository at this point in the history
  • Loading branch information
asolntsev committed Sep 13, 2021
1 parent 53764e8 commit 9587024
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
7 changes: 4 additions & 3 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
@@ -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'
]
Expand All @@ -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}")
Expand Down
12 changes: 6 additions & 6 deletions src/test/java/integration/FileDownloadTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ 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
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");
}
}
6 changes: 3 additions & 3 deletions src/test/java/integration/SelenoidSelenideTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
}

0 comments on commit 9587024

Please sign in to comment.