Disable transitions in poltergeist
This commit is contained in:
parent
11ecbbe20b
commit
8a9ce0d6d8
5 changed files with 23 additions and 8 deletions
|
|
@ -0,0 +1,9 @@
|
|||
// Overrides used for poltergeist tests
|
||||
// scss-lint:disable all
|
||||
* {
|
||||
-moz-transition: none !important;
|
||||
-o-transition: none !important;
|
||||
-webkit-transition: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
// scss-lint:enable all
|
||||
|
|
@ -26,6 +26,9 @@
|
|||
- if rtl?
|
||||
= stylesheet_link_tag :rtl, media: 'all'
|
||||
|
||||
- if Rails.env.test?
|
||||
= stylesheet_link_tag :poltergeist_disable_transition, media: "all"
|
||||
|
||||
= old_browser_js_support
|
||||
<!--[if IE]>
|
||||
= javascript_include_tag :ie
|
||||
|
|
|
|||
|
|
@ -46,6 +46,9 @@
|
|||
- if rtl?
|
||||
= stylesheet_link_tag :rtl, :media => 'all'
|
||||
|
||||
- if Rails.env.test?
|
||||
= stylesheet_link_tag :poltergeist_disable_transition, media: "all"
|
||||
|
||||
= yield(:head)
|
||||
|
||||
= include_gon(:camel_case => true)
|
||||
|
|
|
|||
|
|
@ -30,15 +30,15 @@ Feature: Navigate between pages using the header menu and the drawer
|
|||
Then I should be on the new status message page
|
||||
|
||||
Scenario: search a user
|
||||
When I have turned off jQuery effects
|
||||
And I open the drawer
|
||||
And I search for "Bob"
|
||||
When I open the drawer
|
||||
Then I should see a "#q" within "#drawer"
|
||||
When I search for "Bob"
|
||||
Then I should see "Users matching Bob" within "#search_title"
|
||||
|
||||
Scenario: search for a tag
|
||||
When I have turned off jQuery effects
|
||||
And I open the drawer
|
||||
And I search for "#bob"
|
||||
When I open the drawer
|
||||
Then I should see a "#q" within "#drawer"
|
||||
When I search for "#bob"
|
||||
Then I should be on the tag page for "bob"
|
||||
|
||||
Scenario: navigate to my activity page
|
||||
|
|
|
|||
|
|
@ -36,10 +36,10 @@ Capybara.javascript_driver = :poltergeist
|
|||
Capybara.default_selector = :css
|
||||
|
||||
# We have a ridiculously high wait time to account for build machines of various beefiness.
|
||||
# Capybara.default_max_wait_time = 30
|
||||
Capybara.default_max_wait_time = 30
|
||||
|
||||
# While there are a lot of failures, wait less, avoiding travis timeout
|
||||
Capybara.default_max_wait_time = 15
|
||||
# Capybara.default_max_wait_time = 15
|
||||
|
||||
# If you set this to false, any error raised from within your app will bubble
|
||||
# up to your step definition and out to cucumber unless you catch it somewhere
|
||||
|
|
|
|||
Loading…
Reference in a new issue