Skip to content

Commit 27ff5eb

Browse files
committedMar 3, 2023
index is preserved - change the tests accordingly
1 parent ca6ae15 commit 27ff5eb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎tests/src/app/testqgsattributetable.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -891,9 +891,8 @@ void TestQgsAttributeTable::testEnsureEditSelection()
891891
// we reload the layer
892892
layer->reload();
893893
spy.wait( 1 );
894-
// ... and the currentEditSelection jumps to the first one (instead of staying at 2, since it's NOT persistend)
895-
QVERIFY( dlg->mMainView->mFeatureListView->currentEditSelection().contains( 1 ) );
896-
894+
// ... and the currentEditSelection stays on 2 (since lastEditSelectionFid is persisted)
895+
QVERIFY( dlg->mMainView->mFeatureListView->currentEditSelection().contains( 2 ) );
897896
}
898897

899898
QGSTEST_MAIN( TestQgsAttributeTable )

0 commit comments

Comments
 (0)
Please sign in to comment.