Skip to content

Commit 9a61043

Browse files
committed
[rust] Restore assert driver and browser in config test
1 parent 5bb3515 commit 9a61043

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

rust/tests/config_tests.rs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
use crate::common::{get_selenium_manager, get_stdout};
18+
use crate::common::{assert_browser, assert_driver, get_selenium_manager, get_stdout};
1919

2020
use rstest::rstest;
2121

@@ -40,12 +40,20 @@ fn config_test(#[case] browser_name: String) {
4040
writer.flush().unwrap();
4141

4242
let mut cmd = get_selenium_manager();
43-
cmd.args(["--debug", "--cache-path", tmp_dir.path().to_str().unwrap()])
44-
.assert()
45-
.success()
46-
.code(0);
43+
cmd.args([
44+
"--output",
45+
"json",
46+
"--debug",
47+
"--cache-path",
48+
tmp_dir.path().to_str().unwrap(),
49+
])
50+
.assert()
51+
.success()
52+
.code(0);
4753

4854
let stdout = get_stdout(&mut cmd);
4955

5056
assert!(!stdout.contains("WARN") && !stdout.contains("ERROR"));
57+
assert_driver(&mut cmd);
58+
assert_browser(&mut cmd);
5159
}

0 commit comments

Comments
 (0)