From 13a2e8a350fc6e904005a85fd925545633019a61 Mon Sep 17 00:00:00 2001 From: Oleksiy Radyvanyuk Date: Mon, 21 Jul 2014 16:06:03 +0200 Subject: [PATCH] Fixed issues of merge https://github.com/TestingWithFrank/Frank/commit/5fb43121ee689127f71e07c81f733feeeed3885a --- gem/lib/frank-cucumber/core_frank_steps.rb | 2 ++ gem/lib/frank-cucumber/frank_helper.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gem/lib/frank-cucumber/core_frank_steps.rb b/gem/lib/frank-cucumber/core_frank_steps.rb index 08d38ea..e156d16 100644 --- a/gem/lib/frank-cucumber/core_frank_steps.rb +++ b/gem/lib/frank-cucumber/core_frank_steps.rb @@ -25,6 +25,8 @@ end Then /^I wait to see a navigation bar titled "([^\"]*)"$/ do |expected_title| + quote = get_selector_quote(expected_title) + quoted_text = "#{quote}#{expected_title}#{quote}" wait_until(message: "waited to see a navigation bar titled #{quoted_text}") do navigation_title_with_text_exists(expected_title) end diff --git a/gem/lib/frank-cucumber/frank_helper.rb b/gem/lib/frank-cucumber/frank_helper.rb index 433c503..c00b31e 100644 --- a/gem/lib/frank-cucumber/frank_helper.rb +++ b/gem/lib/frank-cucumber/frank_helper.rb @@ -159,6 +159,7 @@ def view_with_mark_exists(expected_mark) # @param [String] expected_title the expected title of the navigation bar # @return [Boolean] def navigation_title_with_text_exists(expected_title) + quote = get_selector_quote(expected_title) quoted_text = "#{quote}#{expected_title}#{quote}" navFrame = frankly_map('view:"UINavigationBar"', 'frame').first @@ -198,6 +199,7 @@ def check_view_with_mark_does_not_exist(expected_mark) # @raise an rspec exception if the navigation bar and its subview `UINavigationItemView` cannot be found # @raise an rspec exception if the `UINavigationItemView` does not cover the center x of the navigation bar def check_navigation_title_with_text_exists(expected_title) + quote = get_selector_quote(expected_title) quoted_text = "#{quote}#{expected_title}#{quote}" navFrame = frankly_map('view:"UINavigationBar"', 'frame').first