Commit 00ac89d7 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

test: Move the wait for pixmap to earlier in the test

Maybe this fixes the unstability on the CI?
parent 5b5ef039
Pipeline #12588 passed with stage
in 10 minutes and 27 seconds
......@@ -1702,6 +1702,11 @@ void PartTest::testAdditionalActionTriggers()
part.widget()->show();
QVERIFY( QTest::qWaitForWindowExposed( part.widget() ) );
part.m_document->setViewportPage( 0 );
// wait for pixmap
QTRY_VERIFY( part.m_document->page( 0 )->hasPixmap( part.m_pageView) );
QMap<QString, Okular::FormField *> fields;
// Field names in test document are:
// For trigger fields: tf, cb, rb, dd, pb
......@@ -1725,10 +1730,6 @@ void PartTest::testAdditionalActionTriggers()
const int height = part.m_pageView->verticalScrollBar()->maximum() +
part.m_pageView->viewport()->height();
part.m_document->setViewportPage( 0 );
// wait for pixmap
QTRY_VERIFY( part.m_document->page( 0 )->hasPixmap( part.m_pageView) );
part.actionCollection()->action( QStringLiteral( "view_toggle_forms" ) )->trigger();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment