diff --git a/autotests/parttest.cpp b/autotests/parttest.cpp index 13c38ce7e..765df68a2 100644 --- a/autotests/parttest.cpp +++ b/autotests/parttest.cpp @@ -2137,13 +2137,13 @@ void PartTest::testLinkWithCrop() QTest::mouseMove(part.m_pageView->viewport(), QPoint(width * 0.1, width * 0.1)); // The cursor should be normal - QCOMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::OpenHandCursor)); + QTRY_COMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::OpenHandCursor)); // Activate "Trim Margins" cropAction->trigger(); // The cursor should be a cross-hair - QCOMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::CrossCursor)); + QTRY_COMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::CrossCursor)); const int mouseStartY = height * 0.2; const int mouseEndY = height * 0.8; @@ -2154,7 +2154,7 @@ void PartTest::testLinkWithCrop() simulateMouseSelection(mouseStartX, mouseStartY, mouseEndX, mouseEndY, part.m_pageView->viewport()); // The cursor should be normal again - QCOMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::OpenHandCursor)); + QTRY_COMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::OpenHandCursor)); // Click a link const QPoint click(width * 0.2, height * 0.2);