Skip to content

Commit

Permalink
[grid] Fixing a couple of failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Aug 30, 2021
1 parent 586affe commit 79b7644
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,11 @@ public void driversCanBeConfigured() {
"[node]",
"detect-drivers = false",
"[[node.driver-configuration]]",
"name = \"Chrome Beta\"",
"display-name = \"Chrome Beta\"",
"max-sessions = 1",
String.format("stereotype = \"%s\"", chromeCaps.toString().replace("\"", "\\\"")),
"[[node.driver-configuration]]",
"name = \"Firefox Nightly\"",
"display-name = \"Firefox Nightly\"",
"max-sessions = 2",
String.format("stereotype = \"%s\"", firefoxCaps.toString().replace("\"", "\\\""))
};
Expand Down Expand Up @@ -309,14 +309,14 @@ public void driversConfigNeedsStereotypeField() {
"[node]",
"detect-drivers = false",
"[[node.driver-configuration]]",
"name = \"Chrome Beta\"",
"display-name = \"Chrome Beta\"",
"max-sessions = 2",
"cheese = \"paipa\"",
"[[node.driver-configuration]]",
"name = \"Firefox Nightly\"",
"display-name = \"Firefox Nightly\"",
"max-sessions = 2",
"cheese = \"sabana\"",
};
};
Config config = new TomlConfig(new StringReader(String.join("\n", rawConfig)));

List<Capabilities> reported = new ArrayList<>();
Expand All @@ -340,10 +340,10 @@ public void maxSessionsFieldIsOptionalInDriversConfig() {
"[node]",
"detect-drivers = false",
"[[node.driver-configuration]]",
"name = \"Chrome Beta\"",
"display-name = \"Chrome Beta\"",
"stereotype = '{\"browserName\": \"chrome\"}'",
"[[node.driver-configuration]]",
"name = \"Firefox Nightly\"",
"display-name = \"Firefox Nightly\"",
"stereotype = '{\"browserName\": \"firefox\"}'",
};
Config config = new TomlConfig(new StringReader(String.join("\n", rawConfig)));
Expand Down

0 comments on commit 79b7644

Please sign in to comment.