From 84c2452f8106c50ab01051ccdae2fd2da48200c9 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 24 Jan 2015 11:15:52 +0100 Subject: [PATCH] Added check if init owner selection of new ticket screen is empty. --- test/browser_test_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index 156ad33ac..4be4ad056 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -472,6 +472,11 @@ class TestCase < Test::Unit::TestCase return end sleep 2 + + # check count of agents, should be only 1 / - selection on init screen + count = instance.find_elements( { :css => '.active .newTicket select[name="owner_id"] option' } ).count + assert_equal( 1, count, 'check if owner selection is empty per default' ) + if action[:group] element = instance.find_elements( { :css => '.active .newTicket select[name="group_id"]' } )[0] dropdown = Selenium::WebDriver::Support::Select.new(element)