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

Add capybara helpers #7

Merged
merged 5 commits into from
Mar 5, 2017
Merged

Conversation

shunichi
Copy link
Member

@shunichi shunichi commented Mar 3, 2017

No description provided.

end

def finished_all_ajax_requests?
page.evaluate_script('jQuery.active').zero?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

page.execute_script(script)
yield
Timeout.timeout(::Capybara.default_max_wait_time) do
loop until page.evaluate_script('window._capybaraModalWait').zero?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@@ -0,0 +1,27 @@
module Dekiru

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing frozen string literal comment.

module Dekiru
module Capybara
module Helpers
def wait_for_bs_modal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait_for_eventとかの方が使い勝手良さそうな気も!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

たしかにー

@mataki
Copy link
Member

mataki commented Mar 3, 2017

犬、やっぱりうざいな。

@shunichi shunichi merged commit 729d3ec into SonicGarden:master Mar 5, 2017
@shunichi shunichi deleted the capybara-helpers branch March 5, 2017 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants