[Git][noosfero/noosfero][master] 2 commits: login: Wait for animation before filling login fields

Bráulio Bhavamitra gitlab at mg.gitlab.com
Fri May 6 18:13:36 BRT 2016


Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero


Commits:
eca81091 by Braulio Bhavamitra at 2016-05-06T17:58:03-03:00
login: Wait for animation before filling login fields

- - - - -
5be870fd by Braulio Bhavamitra at 2016-05-06T18:01:06-03:00
performance_tests: avoid random failures on the CI

- - - - -


2 changed files:

- features/login.feature
- test/support/performance_helper.rb


Changes:

=====================================
features/login.feature
=====================================
--- a/features/login.feature
+++ b/features/login.feature
@@ -14,6 +14,7 @@ Feature: login
     And I am not logged in
     And I go to the homepage
     And I follow "Login"
+    And I wait 0.5 second for popin animation
     And I fill in the following:
       | Username / Email | joaosilva |
       | Password | 123456 |
@@ -33,6 +34,7 @@ Feature: login
       | mariasilva | my home page | true |
     And I go to mariasilva's homepage
     And I follow "Login"
+    And I wait 0.5 second for popin animation
     And I fill in the following:
       | Username / Email | joaosilva |
       | Password | 123456 |
@@ -68,6 +70,7 @@ Feature: login
       | mariasilva | my home page | true |
     And I go to mariasilva's homepage
     And I follow "Login"
+    And I wait 0.5 second for popin animation
     And I fill in the following:
       | Username / Email | joaosilva |
       | Password | 123456 |
@@ -81,6 +84,7 @@ Feature: login
     And the environment is configured to redirect to site homepage after login
     And I go to joaosilva's homepage
     And I follow "Login"
+    And I wait 0.5 second for popin animation
     And I fill in the following:
       | Username / Email | joaosilva |
       | Password | 123456 |
@@ -94,6 +98,7 @@ Feature: login
     And the environment is configured to redirect to user profile page after login
     And I go to the homepage
     And I follow "Login"
+    And I wait 0.5 second for popin animation
     And I fill in the following:
       | Username / Email | joaosilva |
       | Password | 123456 |
@@ -123,6 +128,7 @@ Feature: login
     And the environment is configured to redirect to profile control panel after login
     And I go to the homepage
     And I follow "Login"
+    And I wait 0.5 second for popin animation
     And I fill in the following:
       | Username / Email | joaosilva |
       | Password | 123456 |
@@ -143,6 +149,7 @@ Feature: login
       | mariasilva | my home page | true |
     And I go to mariasilva's homepage
     And I follow "Login"
+    And I wait 0.5 second for popin animation
     And I fill in the following:
       | Username / Email | joaosilva |
       | Password | 123456 |
@@ -157,6 +164,7 @@ Feature: login
     And the profile joaosilva is configured to redirect to site homepage after login
     And I go to joaosilva's homepage
     And I follow "Login"
+    And I wait 0.5 second for popin animation
     And I fill in the following:
       | Username / Email | joaosilva |
       | Password | 123456 |
@@ -171,6 +179,7 @@ Feature: login
     And the profile joaosilva is configured to redirect to user profile page after login
     And I go to the homepage
     And I follow "Login"
+    And I wait 0.5 second for popin animation
     And I fill in the following:
       | Username / Email | joaosilva |
       | Password | 123456 |
@@ -188,6 +197,7 @@ Feature: login
     And the profile joaosilva is configured to redirect to profile homepage after login
     And I go to the homepage
     And I follow "Login"
+    And I wait 0.5 second for popin animation
     And I fill in the following:
       | Username / Email | joaosilva |
       | Password | 123456 |
@@ -202,6 +212,7 @@ Feature: login
     And the profile joaosilva is configured to redirect to profile control panel after login
     And I go to the homepage
     And I follow "Login"
+    And I wait 0.5 second for popin animation
     And I fill in the following:
       | Username / Email | joaosilva |
       | Password | 123456 |


=====================================
test/support/performance_helper.rb
=====================================
--- a/test/support/performance_helper.rb
+++ b/test/support/performance_helper.rb
@@ -17,7 +17,7 @@ module PerformanceHelper
   # On the travis/gitlab CI this can vary with servers' IO load, so
   # we soften to avoid failures
   #
-  NON_LINEAR_FACTOR = unless ENV['CI'] then 1.8 else 1.0 end
+  NON_LINEAR_FACTOR = unless ENV['CI'] then 1.8 else 0 end
 
 end
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/7c3bd94cc836917f9cdc35bd361ae3aa07b14713...5be870fd7f9f9ff246ae596f9d215a6797c6e300
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160506/72e9b016/attachment-0001.html>


More information about the Noosfero-dev mailing list