Revision 45be57cd
Added by Ondřej Pražák about 8 years ago
test/integration/organization_test.rb | ||
---|---|---|
assert page.has_selector?('h1', :text => "Edit"), "Edit was expected in the <h1> tag, but was not found"
|
||
end
|
||
|
||
test "multiselect does not add items that are filtered out" do
|
||
Capybara.current_driver = Capybara.javascript_driver
|
||
login_admin
|
||
|
||
visit edit_organization_path(taxonomies(:organization1))
|
||
|
||
wait_for_ajax
|
||
within "#content" do
|
||
click_link "Locations"
|
||
within "#locations" do
|
||
find(".ms-selection").assert_no_selector("li[selected='selected']")
|
||
find(".ms-selectable").find("input").set("Location 1")
|
||
find("a[data-original-title='Select All']").click
|
||
find(".ms-selection").find(".ms-selected").find("span").has_text? "Location 1"
|
||
end
|
||
end
|
||
end
|
||
|
||
# PENDING
|
||
# test "mismatches report" do
|
||
# end
|
Also available in: Unified diff
Fixes #7726 - Filtered out items no longer added when 'Select all' clicked