mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-28 01:41:14 -06:00
Fixed unit test for entity select widget.
The unit test for IPA.entity_select_widget has been fixed to check the options after loading the record.
This commit is contained in:
parent
d02e72d3e8
commit
05034f13e6
@ -288,9 +288,9 @@ test("IPA.entity_select_widget" ,function(){
|
||||
other_field: 'uid' };
|
||||
|
||||
base_widget_test('test_value');
|
||||
ok( $('option',widget.list ).length > 1,"options come from AJAX");
|
||||
mock_record = {'uid':'kfrog'};
|
||||
widget.load(mock_record);
|
||||
ok( $('option',widget.list ).length > 1,"options come from AJAX");
|
||||
same(widget.values[0],'kfrog','select set from values');
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user