Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issues of merge https://github.com/TestingWithFrank/Frank/commit/5... #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gem/lib/frank-cucumber/core_frank_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions gem/lib/frank-cucumber/frank_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down