Matt-Yorkley
aca1f92060
Adapt specs to new loading methods
2019-06-12 09:47:01 +01:00
luisramos0
86b0d71c7e
Result of rubocop auto-correct and rebuilding rubocop_manual_todo
2019-05-28 12:57:29 +01:00
luisramos0
0075ffbc02
Run transpec for spec/support
2019-05-09 23:39:30 +01:00
Matt-Yorkley
bbfe71fd27
Improve readability and add code comment
2019-02-25 10:27:34 +00:00
Matt-Yorkley
ea8be0ab95
Fine-tune angular helper
2019-02-23 21:45:33 +00:00
Matt-Yorkley
c4b646c583
Wait for angular to load in BOM spec
2019-02-23 16:12:37 +00:00
Kristina Lim
57f6a7a3b9
Support clicking different text for select2 helper
...
Interaction with the variant autocomplete is not precise. The specs only
search for the product name, then click the first result that matches
the product name which they see.
This could have been the case because searching using the full variant
name does not match the variant. For example, searching "Some Product -
1kg" would not have results, while searching only "Some Product" (the
product name) would list "Some Product - 1kg".
Clicking the first match does not work in all scenarios.
This allows using a separate text for searching and for clicking.
2019-01-26 02:03:54 +08:00
Matt-Yorkley
7487a6da3c
Fix shipping method tests
2019-01-16 17:17:10 +00:00
Matt-Yorkley
21bdaf9960
Fix enterprise images spec
2019-01-16 16:24:01 +00:00
luisramos0
5fb4faac91
Make features/admin/subscriptions_spec and shopworkflow work with selenium
...
Also, remove a test support method, dead code
2019-01-16 16:24:01 +00:00
Rob Harrington
ef68bd1b43
Replace unnecessary perform_and_ensure* type helpers with standard actions and expectations
2019-01-16 16:21:30 +00:00
Rob Harrington
bba8b2020c
Replace use of 'trigger' in ui_component helper
2019-01-16 16:21:30 +00:00
Rob Harrington
23fa57ff6d
Update multilingual_spec to work with Selenium
2019-01-16 16:21:30 +00:00
Rob Harrington
189856a92a
Reimplement resize helper methods to work with Selenium
2019-01-16 16:21:30 +00:00
Rob Harrington
1bad08c1c0
Update checkout_workflow and spec_helper to work with Selenium
2019-01-16 16:21:30 +00:00
Rob Harrington
118d26b2ff
Add aynchronous select2 search helper
...
select2_search from spree times out after 1 second, so this new method just waits for a result to be returned before attempting to select it
2019-01-16 16:21:30 +00:00
Maikel Linke
4abacb3691
Remove unused spec helpers
...
They all seem to have been used in the past. People forgot to remove
them after removing the using spec code.
2019-01-11 18:04:24 +11:00
Maikel Linke
e89a836e72
Remove forgotten code from spec
...
Commit e4ebeb8a29 forgot to remove this
code.
2019-01-11 18:04:24 +11:00
Maikel Linke
cbdda54989
DRY specs with new helper
2019-01-11 18:04:24 +11:00
Pau Pérez Fabregat
08297863be
Merge pull request #3047 from mllocs/feature/expand-all-steps-in-checkout-page
...
Expand all steps in the checkout page by default
2018-11-29 16:28:42 +01:00
Maxim Colls
4b588cbfb0
Removed unused toggle helpers in spec/support
2018-11-23 16:47:55 +00:00
Maikel Linke
95dbfae757
Use expect syntax
2018-11-22 15:42:56 +11:00
luisramos0
33d2b65d65
Removed deprecated spec helper have_select2_option and fixed its last usage
2018-09-20 23:01:23 +01:00
Kristina Lim
cd41498da9
Ask to login when not authenticated for order page
...
Redirect the user to the login page, instead of responding with HTTP
401.
2018-09-06 16:26:48 +08:00
luisramos0
910297572e
Removed unnecessary currency from CartService constructor, using order.currency instead
2018-08-23 12:40:18 +01:00
luisramos0
05bfc098ff
/controllers/spree/order_populator_decorator (with a class_eval) is now /services/CartService with no dependency to Spree::OrderPopulator.
2018-08-23 12:39:55 +01:00
Maikel Linke
30fad228c5
Remove code duplication in spec helper
2018-08-07 09:24:31 +10:00
Pau Perez
f5a5d735fd
Auto correct Rubocop's Layout/EmptyLinesAroundModuleBody cop
2018-04-09 18:47:18 +02:00
Pau Perez
746fcd5802
Auto correct Rubocop's Layout/EmptyLinesAroundAccessModifier cop
2018-04-09 18:47:17 +02:00
Rob Harrington
733dc76c6c
Order Cycles can be assigned to schedules via new/edit form
2018-02-09 14:43:29 +11:00
Andy Palmer
8ec1c2e04a
No longer use expensive page.evaluate_script for imperative methods
2017-11-10 08:47:12 +11:00
Julius Pabrinkis
cec0a8c2e7
Specify page object for Capybara#find methods
2017-11-10 08:47:12 +11:00
Julius Pabrinkis
1fe20eba45
Add backend to be able to switch language by param and persist in cookies and user db
2017-09-20 13:23:15 +10:00
Julius Pabrinkis
ec6a365227
Add test coverage for switching language in darkswarm and admin
2017-08-02 09:57:33 +10:00
Rob Harrington
7bb58342fc
Rubocop: Auto-correct Style/EmptyLineBetweenDefs offences
2017-06-23 16:49:08 +10:00
enricostano
699da16049
Remove unused spec support method
2017-05-31 15:22:30 +10:00
Rob Harrington
6fc4a297a0
Fixing race condition on link click in spec/features/consumer/shopping/products_spec.rb
2017-05-19 13:15:30 +10:00
Rohan Mitchell
a1535d6c04
Catch flash messages after fadeout
2016-11-04 09:39:17 +11:00
Rohan Mitchell
b0eebc2e45
Round FlatPercentItemTotal calcs per-item before summing full quantity
2016-08-26 09:28:29 +10:00
Rohan Mitchell
0dc12d8791
Parameterise add_product_to_cart spec helper method
2016-08-26 09:28:29 +10:00
Maikel Linke
c253d73d11
Refactoring with feedback on pr #1073
2016-06-29 15:46:51 +10:00
Maikel Linke
08fdc8a5bd
Load producers of all or selected order cycles into shop
2016-06-29 12:57:09 +10:00
Maikel Linke
5cd269411d
Trigger order button instead of click
2016-06-10 09:46:56 +10:00
Rob Harrington
7e932f091d
Use have_current_path rather than current_path.should ==
2016-05-25 08:10:20 +10:00
Rohan Mitchell
a11696b85e
Include BugHerd script only if configured, and with configured API key
2016-05-04 12:13:03 +10:00
Rohan Mitchell
9e321a63c0
Don't put master in order cycle - we don't do that no more
2016-04-21 09:36:22 +10:00
Rohan Mitchell
977ff7b35d
Fix compatibility issues with new version of select2
2016-02-24 11:26:37 +11:00
Rohan Mitchell
a27e593924
Fix deprecation notices
2016-01-07 10:51:39 +11:00
Maikel Linke
229070a76b
Merge branch 'master' of github.com:openfoodfoundation/openfoodnetwork into i18n
2015-11-13 15:20:58 +11:00
Rohan Mitchell
888e4d80ef
Add reliable way to check if cart is dirty. Previous way returned true when cart empty.
2015-11-13 14:03:07 +11:00