Skip to content
Permalink
Browse files
add read-only test
following suggestion in #43509
  • Loading branch information
3nids committed Jun 2, 2021
1 parent 0925273 commit 92d56397bfd6ee7cdb8bb16f29e8d67a74fc8031
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/src/gui/testqgsrelationreferencewidget.cpp
@@ -571,6 +571,9 @@ void TestQgsRelationReferenceWidget::testIdentifyOnMap()
QCOMPARE( feature.attribute( QStringLiteral( "pk" ) ).toInt(), 10 );
w.featureIdentified( feature );
QCOMPARE( w.mComboBox->currentData( Qt::DisplayRole ).toInt(), 10 );

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

mLayer1->rollBack();
}

0 comments on commit 92d5639

Please sign in to comment.