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

Commit

Permalink
merge two tests FileDownloadTest into one - fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
asolntsev committed May 14, 2023
1 parent fabe37c commit 648b30b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/integration/FileDownloadTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.io.File;
import java.io.IOException;

import static com.codeborne.selenide.DownloadOptions.using;
import static com.codeborne.selenide.FileDownloadMode.FOLDER;
import static com.codeborne.selenide.FileDownloadMode.HTTPGET;
import static com.codeborne.selenide.FileDownloadMode.PROXY;
Expand Down Expand Up @@ -48,7 +49,7 @@ void slowDownloadToFolder() throws IOException {
$("[name=delay]").setValue("3000");
$("#lore-ipsum").setValue(fileContent);

File file = $("#slow-download").download(withExtension("txt"));
File file = $("#slow-download").download(using(FOLDER).withFilter(withExtension("txt")));

assertThat(file).hasName("hello.txt");
assertThat(file).content().isEqualToIgnoringWhitespace(fileContent);
Expand Down

0 comments on commit 648b30b

Please sign in to comment.