Skip to content

Commit

Permalink
fix misleading error message about disabled proxy
Browse files Browse the repository at this point in the history
This message had to be updated in commit 67694c3, but something went wrong :)
  • Loading branch information
asolntsev committed Nov 16, 2023
1 parent d566fac commit 2e95fe5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void open(SelenideDriver driver) {
private void checkThatProxyIsEnabled(Config config) {
if (!config.proxyEnabled() && config.fileDownload() == PROXY) {
throw new IllegalStateException("config.proxyEnabled == false but config.fileDownload == PROXY. " +
"You need to enable proxy server automatically.");
"You need to enable proxy server to download file using PROXY mode.");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ void startsProxyServer_evenIfProxyIsNotEnabled_butFileDownloadModeIsProxy() {

assertThatThrownBy(() -> navigator.open(selenideDriver, "https://some.com/login"))
.isInstanceOf(IllegalStateException.class)
.hasMessage("config.proxyEnabled == false but config.fileDownload == PROXY. You need to enable proxy server automatically.");
.hasMessage("config.proxyEnabled == false but config.fileDownload == PROXY. " +
"You need to enable proxy server to download file using PROXY mode.");
}
}

0 comments on commit 2e95fe5

Please sign in to comment.