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