diff options
author | Kirill Burtsev <kirill.burtsev@qt.io> | 2020-02-03 12:17:34 +0100 |
---|---|---|
committer | Kirill Burtsev <kirill.burtsev@qt.io> | 2020-02-04 23:09:51 +0100 |
commit | 853c29aec4b81f1d9467b5b00e98cbd3b1f95e1c (patch) | |
tree | dd9a99c83f75f4d2569b05d795b66be9f9b28938 /tests | |
parent | 46d45594746bf3f7d02074c48c62564bb0b74899 (diff) |
Fix backActionUpdate flaky failure
BackAction might not be immediatelly enabled after frame's
content check through javascript. Amends d7d40469b5.
Change-Id: I2b6242da190c39b8d72d17d563c6c86238e56887
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp index 07fb2eab9..8cdcc9f46 100644 --- a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp +++ b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp @@ -790,7 +790,7 @@ void tst_QWebEnginePage::backActionUpdate() QVERIFY(evaluateJavaScriptSync(page, "document.getElementsByName('frame_b')[0].contentDocument == undefined").toBool()); QTest::mouseClick(view.focusProxy(), Qt::LeftButton, 0, firstAnchorCenterInFrame(page, "frame_c")); QTRY_VERIFY(evaluateJavaScriptSync(page, "document.getElementsByName('frame_b')[0].contentDocument != undefined").toBool()); - QVERIFY(action->isEnabled()); + QTRY_VERIFY(action->isEnabled()); } void tst_QWebEnginePage::localStorageVisibility() |