diff options
author | Adam Young <ayoung@redhat.com> | 2011-01-17 12:31:31 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-01-18 01:46:56 -0500 |
commit | ec3e7f1202935e4c82fd8b7c76a4d03d9ee6a19b (patch) | |
tree | f89230906cca1f88a648eeaa3b1cbcf8bd27172c | |
parent | 2b5085349211890497cc63de0d6ff1064dc084ea (diff) | |
download | freeipa-ec3e7f1202935e4c82fd8b7c76a4d03d9ee6a19b.tar.gz freeipa-ec3e7f1202935e4c82fd8b7c76a4d03d9ee6a19b.tar.xz freeipa-ec3e7f1202935e4c82fd8b7c76a4d03d9ee6a19b.zip |
search unit tests Unit tests were by the hiding of the search, and elements from the action panel.
-rw-r--r-- | install/static/test/entity_tests.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/install/static/test/entity_tests.js b/install/static/test/entity_tests.js index a24f8081..21fff48f 100644 --- a/install/static/test/entity_tests.js +++ b/install/static/test/entity_tests.js @@ -122,8 +122,8 @@ test('Testing ipa_facet_setup_views().', function() { ); var li = views.first(); - ok( li.hasClass('search-facet'), - 'Checking the search facet' + ok( li.children().first().hasClass('action-controls'), + 'Checking that first item in list is placement for 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); ok(pkey_input.length,'pkey input exists'); 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); /*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(); entity_facet.length; |