James Mason
0a5246388f
Adapt tests to new, pickier Capybara
2018-11-19 15:10:14 -08:00
James Mason
287344e816
Capybara.save_path defaults to tmp/capybara
2018-11-19 15:10:14 -08: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
James Mason
43bef689fc
Rubocop autocorrections
2018-11-16 09:06:05 -08:00
James Mason
a3adf8318d
Add additional social media fields to contacts
...
+ YouTube
+ Blog
Simplify logic in the view, and refactor the test #BetterPlace
2018-11-14 15:01:03 +01:00
James Mason
1241d21f93
Provide an opportunity for including conference-specific CSS
...
There is currently no top-level selector for views that is conference-specific,
so all conferences on one OSEM instance end up sharing all the same CSS.
In order to allow individual conferences to have unique CSS, a class for the
current conference is applied to the <body> tag, and an scss template provided with
an example of conference-specific CSS.
2018-11-06 08:19:01 -08:00
James Mason
8b12b1662d
Unlint Rspec/DescibeClass #BetterPlace
2018-11-06 08:19:01 -08:00
James Mason
b11001cdba
Every campaign has an end.
...
Drop ahoy, because it's more trouble than it's worth. This means dropping
visits, campaigns, targets.
Campaigns are better run to analytics, such as:
* https://matomo.org/docs/tracking-campaigns/
* https://matomo.org/docs/tracking-goals-web-analytics/
* https://support.google.com/analytics/answer/1012040?hl=en
2018-10-16 21:34:04 +02: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
f866974b19
Enable FactoryBot/AttributeDefinedStatically
...
See https://robots.thoughtbot.com/deprecating-static-attributes-in-factory_bot-4-11
2018-09-08 04:29:22 +02:00
Henne Vogelsang
64d8f05bdd
Update FactoryBot strings & urls
2018-09-06 00:42:28 +02:00
Henne Vogelsang
0a19418d15
Replace All FactoryGirl Constant References
2018-09-06 00:42:28 +02:00
Henne Vogelsang
fb2612ecaf
Simplify set_week callbacks
...
Changes to :week are already ignored py paper_trail. No need to wrap this in a
`without_versioning`. Also drop the reader in `Registration` and the tests. Why
write this into the DB but never read it again? Why test standard
ruby/activerecord stuff.
2018-09-04 21:12:46 +02:00
James Mason
64ceaf50f4
Update Admin user datatables to use AJAX
2018-08-30 16:50:42 +02:00
Tyrant Davis
d3ce401cba
Indicate if spalshpage is marked as public or not.
2018-08-29 21:28:20 -07:00
Stella Rouzi
683f62a27c
Add more options for surveys
...
* Survey period constraints
* Add abilities
* Enforce required questions
* Update survey_submssion updated_at
* Do a full match of possible answer and user reply
2018-07-03 08:46:15 +03:00
Stella Rouzi
c278e547ce
Add survey related tests
2018-07-03 08:46:15 +03:00
Stella Rouzi
68a8ec2204
Add task to populate demo data for surveys
2018-07-03 08:46:15 +03:00
Stella Rouzi
9f3c0eff5d
Add surveys; custom generated by admins
...
Available during registration or after conference
Co-authored-by: Shyukri <shshyukriev@suse.com>
Co-authored-by: Henne <hvogel@opensuse.org>
Co-authored-by: Moises <mdeniz@suse.com>
2018-07-03 08:46:15 +03:00
James Mason
1e9765c163
DRY up bootstrapSwitches with default values
2018-06-26 07:10:08 -07:00
James Mason
d8bd269a64
Add frozen_string_literal magic comment
...
re: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/FrozenStringLiteralComment
2018-06-01 09:15:57 -07: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
03ef28e74d
Require code of conduct acceptance on registration
2018-05-08 13:23:00 +02:00
James Mason
95196c7f80
Include code of conduct on conference
2018-05-08 13:23:00 +02:00
James Mason
217ec1a46f
Show code of conduct on organizations
2018-05-08 13:23:00 +02:00
James Mason
a6daff8582
Add/edit org code of conduct, as admin
2018-05-08 13:23:00 +02:00
James Mason
98defe2d0f
Use role caching for Rolify to avoid N+1 queries
...
Resolves #2018
See https://github.com/RolifyCommunity/rolify#cached-roles-to-avoid-n1-issue
2018-04-04 07:36:29 -07:00
Michael Klimenko
30ba7b133b
Roles order fixed in test is not essential
2018-03-28 08:32:45 -07:00
Michael Klimenko
297447d802
Make factories and tests timezone-friendly
2018-03-28 08:32:45 -07:00
Michael Klimenko
58cb62dd6d
Fix tickets turnover calculation
2018-03-27 07:52:25 -07:00
ViditChitkara
33d32b9294
currency of a single ticket could be updated now
...
closes #1913
fixed travis faliures
minor changes
removed empty file
added tests regarding currency updation
2018-03-15 13:19:59 +02:00
James Mason
ad19a6d753
Use helpers for repeated event dropdown links
2018-03-14 18:00:37 -07:00
James Mason
9e10678542
Clean up rating partials
2018-03-14 18:00:37 -07:00
James Mason
73c5c3c97a
Allow root URL to redirect to a conference via ENV var.
2018-03-15 01:24:49 +01:00
James Mason
f062f7f4ee
Reduce deprecation warnings
2018-03-15 01:20:57 +01: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
44fd794416
Make test organization names more unique
...
The addition of a uniqueness validation on Organization#name is causing
a lot of random failures; the Organization factory uses a Faker value,
but appears to be producing repetitive results, so I've added a
FactoryGirl sequence to ensure uniqueness.
2018-03-02 15:28:31 +01:00
Godfrey Chan
0c8095493a
Skylight instrumentation
...
This allows individual installations to optionally collect performance
data using [Skylight for Open Source](https://www.skylight.io/oss ).
2018-02-22 21:08:24 -08:00
Carlos Coelho
637f6ce765
Add tests for conference withdrawn events
2018-02-19 01:02:30 +02:00
namangupta01
7326bd132f
Ability of user to create registration is fixed Closes #1628
...
Speaker's ability to create registration and corresponding tests are improved
2018-02-10 19:19:02 +02:00
James Mason
fa55224163
Break up the one-query-of-doom
...
The single query was producing a tremendously large ActiveRecord allocation.
While this isn't nearly as cool as one query, it's still a significant
reduction in SQL trips, and now has the bonus of only loading what is
actually going to be displayed.
2017-12-22 10:48:55 -08:00
James Mason
27f6d8ad73
Let's get serious about linting, folks.
2017-12-22 10:48:55 -08:00
James Mason
b2e1eb5fa9
Generalize get_logo helper for all classes
2017-12-22 10:48:55 -08:00
James Mason
f0c3fc357b
Fold call for papers & call for tracks into one splashpage section
2017-12-22 10:48:55 -08:00
Naman Gupta
6eb8c8d6ae
Added tests for program#any_event_for_this_date?
2017-12-21 21:17:00 +02:00
Ronaq13
505d9da3d4
Fix Performance/HashEachMethods offenses
...
values.each and keys.each methods are depreciated, so they have replaced by
each_value and each_key respectively. This has done manually.
Closes https://github.com/openSUSE/osem/issues/1825
2017-12-18 17:30:37 +01:00