From 3c7e7684f87f69cc1fb4fa6d68c3fa41a311f1e0 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 1 Jun 2015 10:29:54 +0200 Subject: [PATCH] Fixed active task selector. --- test/browser_test_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index 3a4f12c89..d88b9607d 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -649,7 +649,7 @@ class TestCase < Test::Unit::TestCase # verify title if data[:title] - title = instance.find_elements( { css: '.tasks .active' } )[0].text.strip + title = instance.find_elements( { css: '.tasks .is-active' } )[0].text.strip if title =~ /#{data[:title]}/i assert( true, "matching '#{data[:title]}' in title '#{title}'" ) else @@ -659,8 +659,8 @@ class TestCase < Test::Unit::TestCase puts "tv #{params.inspect}" # verify modified if data.key?(:modified) - exists = instance.find_elements( { css: '.tasks .active .icon' } )[0] - is_modified = instance.find_elements( { css: '.tasks .active .icon.modified' } )[0] + exists = instance.find_elements( { css: '.tasks .is-active .icon' } )[0] + is_modified = instance.find_elements( { css: '.tasks .is-active .icon.modified' } )[0] puts "m #{data[:modified].inspect}" if exists puts ' ecists'