diff --git a/tests/auto/widgets/itemviews/qcolumnview/tst_qcolumnview.cpp b/tests/auto/widgets/itemviews/qcolumnview/tst_qcolumnview.cpp index 82fe134fb76..e7a1a7092f8 100644 --- a/tests/auto/widgets/itemviews/qcolumnview/tst_qcolumnview.cpp +++ b/tests/auto/widgets/itemviews/qcolumnview/tst_qcolumnview.cpp @@ -976,6 +976,11 @@ void tst_QColumnView::parentCurrentIndex() QTest::qWait(ANIMATION_DELAY); QTRY_COMPARE(view.createdColumns[0]->currentIndex(), first); QTRY_COMPARE(view.createdColumns[1]->currentIndex(), second); + + // The next two lines should be removed when QTBUG-22707 is resolved. + QEXPECT_FAIL("", "QTBUG-22707", Abort); + QVERIFY(view.createdColumns[2]); + QTRY_COMPARE(view.createdColumns[2]->currentIndex(), third); }