Permalink
Browse files

[webui] fix attribute tests with too many values

  • Loading branch information...
1 parent 19af783 commit 6822f6ffdccec18880ee17a62dff46a5bc3e0b96 @coolo coolo committed Jan 19, 2012
@@ -103,6 +103,9 @@ def add_new_attribute attribute
elsif attribute[:expect] == :wrong_number_of_values
validate { flash_message.include? "Saving attribute failed: attribute '#{attribute[:name]}' requires" }
validate { flash_message.include? "values, but" }
+ elsif attribute[:expect] == :too_many_values
+ validate { flash_message.include? "Saving attribute failed: attribute '#{attribute[:name]}' has" }
+ validate { flash_message.include? "values, but" }
end
validate_page
end
@@ -140,6 +140,7 @@ def distribute(*args)
failed = 0
skipped = 0
TestRunner.add_all
+#TestRunner.set_limitto ["wrong_number_of_values_for_package_attribute", "search_for_home_projects"]
# Run the test
display = Headless.new
@@ -112,7 +112,7 @@ class TC12__AddPackageAttributes < TestCase
add_new_attribute(
:name => "OBS:ProjectStatusPackageFailComment",
:value => "val1,val2,val3",
- :expect => :wrong_number_of_values)
+ :expect => :too_many_values)
end
@@ -13,6 +13,7 @@ class TC14__Search < TestCase
:in => [:title])
refresh_page
results = search_results
+ puts results.inspect
assert results.include? :type => :project, :project_name => "home:user1"
assert results.include? :type => :project, :project_name => "home:user2"
assert results.include? :type => :project, :project_name => "home:king"

0 comments on commit 6822f6f

Please sign in to comment.