FIX: comment out tests for UI elements removed from HTML markup

This commit is contained in:
cpradio 2016-10-11 17:50:16 -04:00
parent ca4130f30d
commit ff74bd7e28
1 changed files with 46 additions and 46 deletions

View File

@ -77,8 +77,8 @@ test("validate population of advanced search", assert => {
andThen(() => { andThen(() => {
assert.ok(exists('.search-options span:contains("admin")'), 'has "admin" pre-populated'); assert.ok(exists('.search-options span:contains("admin")'), 'has "admin" pre-populated');
assert.ok(exists('.search-options .category-combobox .select2-choice .select2-chosen:contains("bug")'), 'has "bug" pre-populated'); assert.ok(exists('.search-options .category-combobox .select2-choice .select2-chosen:contains("bug")'), 'has "bug" pre-populated');
assert.ok(exists('.search-options span:contains("moderators")'), 'has "moderators" pre-populated'); //assert.ok(exists('.search-options span:contains("moderators")'), 'has "moderators" pre-populated');
assert.ok(exists('.search-options span:contains("Reader")'), 'has "Reader" pre-populated'); //assert.ok(exists('.search-options span:contains("Reader")'), 'has "Reader" pre-populated');
assert.ok(exists('.search-options .tag-chooser .tag-monkey'), 'has "monkey" pre-populated'); assert.ok(exists('.search-options .tag-chooser .tag-monkey'), 'has "monkey" pre-populated');
assert.ok(exists('.search-options .combobox .select2-choice .select2-chosen:contains("I liked")'), 'has "I liked" pre-populated'); assert.ok(exists('.search-options .combobox .select2-choice .select2-chosen:contains("I liked")'), 'has "I liked" pre-populated');
assert.ok(exists('.search-options .combobox .select2-choice .select2-chosen:contains("are open")'), 'has "are open" pre-populated'); assert.ok(exists('.search-options .combobox .select2-choice .select2-chosen:contains("are open")'), 'has "are open" pre-populated');
@ -124,51 +124,51 @@ test("update category through advanced search ui", assert => {
}); });
}); });
test("update group through advanced search ui", assert => { // test("update group through advanced search ui", assert => {
visit("/search"); // visit("/search");
fillIn('.search input.full-page-search', 'none'); // fillIn('.search input.full-page-search', 'none');
click('.search-advanced h3.panel-title'); // click('.search-advanced h3.panel-title');
fillIn('.search-options .group-selector', 'moderators'); // fillIn('.search-options .group-selector', 'moderators');
click('.search-options .group-selector'); // click('.search-options .group-selector');
keyEvent('.search-options .group-selector', 'keydown', 8); // keyEvent('.search-options .group-selector', 'keydown', 8);
//
// andThen(() => {
// waitFor(() => {
// assert.ok(visible('.search-options .autocomplete'), '"autocomplete" popup is visible');
// assert.ok(exists('.search-options .autocomplete ul li a:contains("moderators")'), '"autocomplete" popup has an entry for "moderators"');
//
// click('.search-options .autocomplete ul li a:first');
//
// andThen(() => {
// assert.ok(exists('.search-options span:contains("moderators")'), 'has "moderators" pre-populated');
// assert.equal(find('.search input.full-page-search').val(), "none group:moderators", 'has updated search term to "none group:moderators"');
// });
// });
// });
// });
andThen(() => { // test("update badges through advanced search ui", assert => {
waitFor(() => { // visit("/search");
assert.ok(visible('.search-options .autocomplete'), '"autocomplete" popup is visible'); // fillIn('.search input.full-page-search', 'none');
assert.ok(exists('.search-options .autocomplete ul li a:contains("moderators")'), '"autocomplete" popup has an entry for "moderators"'); // click('.search-advanced h3.panel-title');
// fillIn('.search-options .badge-names', 'Reader');
click('.search-options .autocomplete ul li a:first'); // click('.search-options .badge-names');
// keyEvent('.search-options .badge-names', 'keydown', 8);
andThen(() => { //
assert.ok(exists('.search-options span:contains("moderators")'), 'has "moderators" pre-populated'); // andThen(() => {
assert.equal(find('.search input.full-page-search').val(), "none group:moderators", 'has updated search term to "none group:moderators"'); // waitFor(() => {
}); // assert.ok(visible('.search-options .autocomplete'), '"autocomplete" popup is visible');
}); // assert.ok(exists('.search-options .autocomplete ul li a:contains("Reader")'), '"autocomplete" popup has an entry for "Reader"');
}); //
}); // click('.search-options .autocomplete ul li a:first');
//
test("update badges through advanced search ui", assert => { // andThen(() => {
visit("/search"); // assert.ok(exists('.search-options span:contains("Reader")'), 'has "Reader" pre-populated');
fillIn('.search input.full-page-search', 'none'); // assert.equal(find('.search input.full-page-search').val(), "none badge:Reader", 'has updated search term to "none badge:Reader"');
click('.search-advanced h3.panel-title'); // });
fillIn('.search-options .badge-names', 'Reader'); // });
click('.search-options .badge-names'); // });
keyEvent('.search-options .badge-names', 'keydown', 8); // });
andThen(() => {
waitFor(() => {
assert.ok(visible('.search-options .autocomplete'), '"autocomplete" popup is visible');
assert.ok(exists('.search-options .autocomplete ul li a:contains("Reader")'), '"autocomplete" popup has an entry for "Reader"');
click('.search-options .autocomplete ul li a:first');
andThen(() => {
assert.ok(exists('.search-options span:contains("Reader")'), 'has "Reader" pre-populated');
assert.equal(find('.search input.full-page-search').val(), "none badge:Reader", 'has updated search term to "none badge:Reader"');
});
});
});
});
// test("update tags through advanced search ui", assert => { // test("update tags through advanced search ui", assert => {
// visit("/search"); // visit("/search");