Software Público Brasileiro
Portal do

Software Público Brasileiro

  • Cadastre-se
  • Entrar
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • prezento
  • app
  • assets
  • javascripts
  • testing.js.erb
  • 116b9e50   Disabled jQuery animations during tests ... Browse Code »
    jQuery animations make acceptance tests unreliable due to the way
    PhantomJS, Poltergeist and Capybara interact.
    To click on an element, Capybara finds it's position in the screen, then
    literally clicks at the element's x and y coordinates. This works fine
    if the element does not move, but if the element is being shown by an
    animation, it will move, and the click will miss.
    
    This caused some tests, like the one for Ruby metric configuration
    creation, to fail sporadically. Using jQuery's mechanism for globally
    disabling animations only during tests seems to fix the unreliability
    (20 out of 20 runs of the Ruby metric conf. test succeded).
    
    Signed-off-by: Daniel Miranda <danielkza2@gmail.com>
    Heitor
    2015-07-15 10:21:43 -0300  
testing.js.erb 80 Bytes
Edit Raw Blame History Permalink
1 2 3
<% if Rails.env == "test" %>
  $(function(evt) { $.fx.off = true; });
<% end %>
Voltar para o topo
Assuntos
Publique seu software
Prestadores de serviço
Espaços dos municípios
Software Público
Entenda o que é
Eventos
Prêmios
Publicações
Serviços
FAQ
Contato
Relatar erros
RSS
O que é?
Assine
Navegação
Acessibilidade
Mapa do site

Desenvolvido com os projetos de software livre Colab, Gitlab, Mailman e Noosfero