mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:23:13 +08:00
FIX: comment out tests for UI elements removed from HTML markup
This commit is contained in:
parent
ca4130f30d
commit
ff74bd7e28
|
@ -77,8 +77,8 @@ test("validate population of advanced search", assert => {
|
|||
andThen(() => {
|
||||
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 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("moderators")'), 'has "moderators" 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 .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');
|
||||
|
@ -124,51 +124,51 @@ test("update category through advanced search ui", assert => {
|
|||
});
|
||||
});
|
||||
|
||||
test("update group through advanced search ui", assert => {
|
||||
visit("/search");
|
||||
fillIn('.search input.full-page-search', 'none');
|
||||
click('.search-advanced h3.panel-title');
|
||||
fillIn('.search-options .group-selector', 'moderators');
|
||||
click('.search-options .group-selector');
|
||||
keyEvent('.search-options .group-selector', 'keydown', 8);
|
||||
// test("update group through advanced search ui", assert => {
|
||||
// visit("/search");
|
||||
// fillIn('.search input.full-page-search', 'none');
|
||||
// click('.search-advanced h3.panel-title');
|
||||
// fillIn('.search-options .group-selector', 'moderators');
|
||||
// click('.search-options .group-selector');
|
||||
// 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(() => {
|
||||
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"');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
test("update badges through advanced search ui", assert => {
|
||||
visit("/search");
|
||||
fillIn('.search input.full-page-search', 'none');
|
||||
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 badges through advanced search ui", assert => {
|
||||
// visit("/search");
|
||||
// fillIn('.search input.full-page-search', 'none');
|
||||
// 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 => {
|
||||
// visit("/search");
|
||||
|
|
Loading…
Reference in New Issue
Block a user