mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
search unit tests Unit tests were by the hiding of the search, and elements from the action panel.
This commit is contained in:
committed by
Endi S. Dewata
parent
2b50853492
commit
ec3e7f1202
@@ -122,8 +122,8 @@ test('Testing ipa_facet_setup_views().', function() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
var li = views.first();
|
var li = views.first();
|
||||||
ok( li.hasClass('search-facet'),
|
ok( li.children().first().hasClass('action-controls'),
|
||||||
'Checking the search facet'
|
'Checking that first item in list is placement for controls'
|
||||||
);
|
);
|
||||||
|
|
||||||
li = li.next(); // skip action controls
|
li = li.next(); // skip action controls
|
||||||
@@ -148,11 +148,14 @@ test('Testing ipa_facet_setup_views().', function() {
|
|||||||
var pkey_input = $('input[name=pkey]', action_panel);
|
var pkey_input = $('input[name=pkey]', action_panel);
|
||||||
ok(pkey_input.length,'pkey input exists');
|
ok(pkey_input.length,'pkey input exists');
|
||||||
var search_facets = $('li.search-facet', action_panel);
|
var search_facets = $('li.search-facet', action_panel);
|
||||||
equals(search_facets.length,1,'one search facet in action panel');
|
equals(search_facets.length,0,'search facet should not show up in action panel');
|
||||||
var entity_facets = $('li.entity-facet', action_panel);
|
var entity_facets = $('li.entity-facet', action_panel);
|
||||||
/*No longer automatically adding details, so ony the assoc. facets */
|
/*No longer automatically adding details, so ony the assoc. facets */
|
||||||
equals(entity_facets.length,3,'3 entity facets in action panel');
|
equals(entity_facets.length,4,'4 hidden entity facets in action panel');
|
||||||
|
entity_facets.each(function() {
|
||||||
|
ok( $(this).hasClass('entity-facet-disabled'),
|
||||||
|
'entity facets are disabled');
|
||||||
|
});
|
||||||
|
|
||||||
for ( var entity_facet = entity_facets.first();
|
for ( var entity_facet = entity_facets.first();
|
||||||
entity_facet.length;
|
entity_facet.length;
|
||||||
|
|||||||
Reference in New Issue
Block a user