Skip to content

Commit

Permalink
add read-only test (#43515)
Browse files Browse the repository at this point in the history
* add read-only test

following suggestion in #43509

* Update testqgsrelationreferencewidget.cpp

* Fix test

Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
  • Loading branch information
3nids and m-kuhn committed Jun 5, 2021
1 parent bc34d15 commit 0be6594
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/src/gui/testqgsrelationreferencewidget.cpp
Expand Up @@ -572,6 +572,9 @@ void TestQgsRelationReferenceWidget::testIdentifyOnMap()
w.featureIdentified( feature );
QCOMPARE( w.mComboBox->currentData( Qt::DisplayRole ).toInt(), 10 );

w.setReadOnlySelector( true );
QVERIFY( !w.mComboBox->isEnabled() );

mLayer1->rollBack();
}

Expand Down

0 comments on commit 0be6594

Please sign in to comment.