Commit graph

44 commits

Author SHA1 Message Date
Ana María Martínez Gómez
9e1b214c60
Disable capybara animation
Turn off jquery animation to avoid tests with animations to fail and make
tests easy to debug.

Co-authored-by: Stephan Kulow <coolo@suse.de>
2019-07-17 00:16:41 +02:00
Henne Vogelsang
04616a9b24
Switch to webdrivers, chromedriver-helper is no more
While we're at it let's also update capybara.

Co-authored-by: Ana María Martínez Gómez <anamaria@martinezgomez.name>
2019-07-16 23:59:17 +02:00
Henne Vogelsang
9c098e600b Install chrome in the development env
To be able to run feature tests against it.
2019-02-20 17:45:07 +01:00
Ana María Martínez Gómez
d7dd85bcc0 Add Shoulda Matchers 3 configuration
From version 3.0.0 it is needed to specfied which test framework you're
using and which portion of the matchers you want to use in
`rails_helper.rb` (or the old `spec_helper.rb` in our case).
2019-02-19 20:50:09 +01:00
James Mason
a9e8498abe transactional db support for capybara tests! 2018-11-19 08:40:55 -08:00
James Mason
1b9a12746d Fix up test failures in Chrome & Firefox 2018-11-19 08:40:55 -08:00
James Mason
9eae73c7e4 Goodbye phantomjs, hello (again) selenium. 2018-11-19 08:40:55 -08:00
Henne Vogelsang
a0b79c7789 Drop knapsack
It constantly fails with "Mysql2::Error: This connection is in use by...".
Might be because of database cleaner? But until we can get this stable,
rip it out again.

Replaced by a matrix based on test type
2018-09-20 00:56:17 +02:00
Henne Vogelsang
0a19418d15 Replace All FactoryGirl Constant References 2018-09-06 00:42:28 +02:00
James Mason
806cdbe046 Switch coverage host from coveralls -> codecov
Coveralls seems incapable of cleanly handling parallel results.
2018-05-21 16:24:25 +02:00
James Mason
6d31dfeef4 Add frozen_string_literal magic comment
re: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/FrozenStringLiteralComment
2018-05-09 06:54:26 -07:00
James Mason
dd0a52cca9 Use knapsack to parallelize tests
...in order to reduce TravisCI runtimes
2018-05-09 06:39:06 -07:00
James Mason
137d997793 Don't use external youtube resources in test
Resolves https://github.com/openSUSE/osem/issues/1986
2018-03-06 18:24:29 -08:00
James Mason
574ac63a05 Fix a flaky test. 2017-11-07 17:59:11 -08:00
James Mason
d95a786d9f
Fix intermittent failures in track tests
Boostrap's off-screen rendering was interfering with finding links
in the page layout.

The included approach should be bulletproof.
2017-10-10 20:23:54 -07:00
Ana María Martínez Gómez
7ebf44d1e4 Improvements in the DatabaseCleaner
Move all what is related to the DatabaseCleaner to the
database_cleaner.rb file. Load the seeds only when they have been
deleted and not before every test.
2017-01-11 10:03:27 +01:00
Hernan Schmidt
244172a9bc Clean up DatabaseCleaner usage 2016-08-18 18:32:06 +02:00
Nishanth Vijayan
a45e537bac Setup basic Revision History page
Sets up paper_trail tracking in important models

and add conference_id to versions for storing conference_id
of conference related objects  as metadata.This will help in querying
for versions related to conferences.

Fix issues with factories & event types initialization.Import paper_trail testing helpers
Fix bug: Creating an event creates a useless version with event update

Add revert and view changes features to revision history
2016-08-12 13:35:56 +05:30
Andrew Kvalheim
e593c1d1fb Apply recommendation from thoughtbot/shoulda-matchers@a5623e7. 2015-10-14 09:26:36 -07:00
Stella Rouzi
0d51220a8c load seeds before tests 2014-11-12 16:22:53 +02:00
James Mason
2b0d7b880b Use phantomjs gem to demonstrate phantomjs is a dependency, and autoinstall phantomjs. 2014-08-19 10:32:37 -07:00
Chrisbr
2a731e8350 Refactoring Conference/Event media to new media object
close #420
2014-08-06 14:30:50 +02:00
Chrisbr
6c0daf3c3e Enables Javascript error validation for poltergeist 2014-07-23 16:06:19 +02:00
Artem Chernikov
79937d5338 Fix polthergeist issues 2014-07-23 10:52:54 +02:00
Gopesh Tulsyan
b4a838bfb2 Set js_errors to false in poltergeist driver 2014-07-23 12:28:49 +05:30
Artem Chernikov
a3d6493ea6 Allow to collect coverage information locally 2014-07-07 15:06:44 +02:00
KalabiYau
dbb210908b Update and fix test kitchet to be conformant with poltergeist 2014-07-07 15:06:43 +02:00
Stella Rouzi
600adde6ba implement openID authentication 2014-06-19 12:58:05 +03:00
Gopesh Tulsyan
d1e9bd06a6 View specs, added factories, fixed bugs 2014-05-21 16:20:02 +05:30
Gopesh Tulsyan
03138fd40d fixes by houndci 2014-05-19 21:25:42 +05:30
Gopesh Tulsyan
7a5f47257a Create view for splash page from existing routes 2014-05-19 21:21:06 +05:30
Chrisbr
f485f4ce57 fix failing tests 2014-05-14 13:18:19 +02:00
Chrisbr
e823fc0279 Implements login macros 2014-05-10 17:54:56 +02:00
Chrisbr
d6c692962e Enables capybara-webkit 2014-05-10 17:53:31 +02:00
Chrisbr
0a5f08878f Switch back to sqlite test db
http://stackoverflow.com/questions/19493153/rails-4-use-sqlite-memory-db-for-selenium-driven-tests
2014-05-10 16:45:51 +02:00
Chrisbr
8aa68fb84a Installs database cleaner
- preparation for feature tests with capybara
see:
http://devblog.avdi.org/2012/08/31/configuring-database_cleaner-with-rails-rspec-capybara-and-selenium/
2014-05-10 15:55:17 +02:00
Chrisbr
546977fc02 Fix Hound CI violations 2014-05-10 10:24:58 +02:00
Chrisbr
c890aea68d Conference Controller tests 2014-05-09 14:44:01 +02:00
James Mason
3b84b57a02 Seed the in-memory test db. 2014-05-08 14:48:10 -07:00
James Mason
022c733b6d Suggest an in-memory db for testing. 2014-05-08 12:05:57 -07:00
Henne Vogelsang
33d74277d0 Make the travis log shorter, enable coveralls rails mode 2014-04-10 11:59:24 +02:00
Henne Vogelsang
237318c7b4 Enable travis and coveralls 2014-04-09 17:04:03 +02:00
Henne Vogelsang
e3fd0c195a First tests in rspec, with factory_girl 2014-04-09 13:18:11 +02:00
Henne Vogelsang
ad1121ffb0 Remote the unused minitest suite, switch to rspec 2014-04-09 13:16:21 +02:00