1
0
mirror of synced 2026-07-07 00:50:01 +00:00

fix(assertions): set default timeout to 5s (#670)

This commit is contained in:
Yury Semikhatsky
2021-10-27 16:18:42 -07:00
committed by GitHub
parent a8e41b1ede
commit 38bde7ad25
@@ -48,6 +48,9 @@ class AssertionsBase {
}
void expectImpl(String expression, FrameExpectOptions expectOptions, Object expected, String message) {
if (expectOptions.timeout == null) {
expectOptions.timeout = 5_000.0;
}
FrameExpectResult result = actualLocator.expect(expression, expectOptions);
if (result.matches == isNot) {
Object actual = result.received == null ? null : Serialization.deserialize(result.received);