Browse Source

Fixed task modified selector.

Martin Edenhofer 9 years ago
parent
commit
190d86d4f1
2 changed files with 4 additions and 4 deletions
  1. 1 1
      test/browser/agent_ticket_actions_level4_test.rb
  2. 3 3
      test/browser_test_helper.rb

+ 1 - 1
test/browser/agent_ticket_actions_level4_test.rb

@@ -87,7 +87,7 @@ class AgentTicketActionLevel4Test < TestCase
       css: ".tasks a[href=\"#ticket/zoom/#{ticket_id}\"]",
     )
     exists_not(
-      css: ".tasks a[href=\"#ticket/zoom/#{ticket_id}\"] .modified",
+      css: ".tasks a[href=\"#ticket/zoom/#{ticket_id}\"].is-modified",
     )
 
     # reload

+ 3 - 3
test/browser_test_helper.rb

@@ -659,11 +659,11 @@ class TestCase < Test::Unit::TestCase
       puts "tv #{params.inspect}"
       # verify modified
       if data.key?(:modified)
-        exists      = instance.find_elements( { css: '.tasks .is-active .icon' } )[0]
-        is_modified = instance.find_elements( { css: '.tasks .is-active .icon.modified' } )[0]
+        exists      = instance.find_elements( { css: '.tasks .is-active' } )[0]
+        is_modified = instance.find_elements( { css: '.tasks .is-modified' } )[0]
         puts "m #{data[:modified].inspect}"
         if exists
-          puts ' ecists'
+          puts ' exists'
         end
         if is_modified
           puts ' is_modified'