Skip to content

[java] update property name #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 18, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,6 @@ private void validateMac(String msg) {
}

private boolean isDisabled() {
return Objects.equals(System.getProperty("saucelabs"), "false");
return Objects.equals(System.getProperty("sauce.disabled"), "true");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class DisableTest {
@Test
public void startSession() {
// 1. Toggle off sauce labs
System.setProperty("saucelabs", "false");
System.setProperty("sauce.disabled", "true");

// 2. Create a Sauce Session
SauceSession session = new SauceSession();
Expand All @@ -22,6 +22,7 @@ public void startSession() {
Assertions.assertNull(driver);

// 4. All session commands will be ignored
Assertions.assertNull(session.getDriver());
Assertions.assertDoesNotThrow(
() -> {
session.annotate("This gets ignored");
Expand Down
Loading