1818package org .openqa .selenium .grid .data ;
1919
2020import static org .assertj .core .api .Assertions .assertThat ;
21+ import static org .openqa .selenium .remote .CapabilityType .ENABLE_DOWNLOADS ;
2122
2223import org .junit .jupiter .api .Test ;
2324import org .openqa .selenium .Capabilities ;
@@ -198,15 +199,15 @@ void fullMatchExtensionCaps() {
198199 "firefox" ,
199200 CapabilityType .PLATFORM_NAME ,
200201 Platform .WINDOWS ,
201- "se:downloadsEnabled" ,
202+ ENABLE_DOWNLOADS ,
202203 true );
203204 Capabilities capabilities =
204205 new ImmutableCapabilities (
205206 CapabilityType .BROWSER_NAME ,
206207 "firefox" ,
207208 CapabilityType .PLATFORM_NAME ,
208209 Platform .WINDOWS ,
209- "se:downloadsEnabled" ,
210+ ENABLE_DOWNLOADS ,
210211 true );
211212 assertThat (slotMatcher .matches (stereotype , capabilities )).isTrue ();
212213 }
@@ -308,7 +309,7 @@ void matchesBrowser() {
308309 void matchDownloadsForRegularTestMatchingAgainstADownloadAwareNode () {
309310 Capabilities stereotype =
310311 new ImmutableCapabilities (
311- CapabilityType .BROWSER_NAME , "chrome" , "se:downloadsEnabled" , true );
312+ CapabilityType .BROWSER_NAME , "chrome" , ENABLE_DOWNLOADS , true );
312313 Capabilities capabilities = new ImmutableCapabilities (CapabilityType .BROWSER_NAME , "chrome" );
313314 assertThat (slotMatcher .matches (stereotype , capabilities )).isTrue ();
314315 }
@@ -317,10 +318,10 @@ void matchDownloadsForRegularTestMatchingAgainstADownloadAwareNode() {
317318 void matchDownloadsForAutoDownloadTestMatchingAgainstADownloadAwareNode () {
318319 Capabilities stereotype =
319320 new ImmutableCapabilities (
320- CapabilityType .BROWSER_NAME , "chrome" , "se:downloadsEnabled" , true );
321+ CapabilityType .BROWSER_NAME , "chrome" , ENABLE_DOWNLOADS , true );
321322 Capabilities capabilities =
322323 new ImmutableCapabilities (
323- CapabilityType .BROWSER_NAME , "chrome" , "se:downloadsEnabled" , true );
324+ CapabilityType .BROWSER_NAME , "chrome" , ENABLE_DOWNLOADS , true );
324325 assertThat (slotMatcher .matches (stereotype , capabilities )).isTrue ();
325326 }
326327
@@ -329,7 +330,7 @@ void ensureNoMatchFOrDownloadAwareTestMatchingAgainstOrdinaryNode() {
329330 Capabilities stereotype = new ImmutableCapabilities (CapabilityType .BROWSER_NAME , "chrome" );
330331 Capabilities capabilities =
331332 new ImmutableCapabilities (
332- CapabilityType .BROWSER_NAME , "chrome" , "se:downloadsEnabled" , true );
333+ CapabilityType .BROWSER_NAME , "chrome" , ENABLE_DOWNLOADS , true );
333334 assertThat (slotMatcher .matches (stereotype , capabilities )).isFalse ();
334335 }
335336
0 commit comments