Luis Ramos
23627c5453
Run rubocop -a (safe corrections) removing all exceptions so all possible fixes are applied
...
9290 issues fixed
2021-06-17 22:19:26 +01:00
Maikel Linke
3e2f81d640
Add helper to view spec needing it
2021-06-09 14:06:54 +10:00
Jean-Baptiste Bellet
e3f56556cf
Remove feature toggle around unit_price and enable it
2021-06-07 20:53:45 +02:00
Luis Ramos
a949422ac9
Adapt view spec stubs to rails 6
2021-05-13 23:28:35 +01:00
Matt-Yorkley
943c00c924
WIP - Update loading of helpers in controllers
...
Rails has changed the way helpers are loaded. It's a bit weird. It was throwing lots of errors, and recommended using this setting, but now requires that all helpers are loaded explicitly. I'm not sure about this.
2021-05-03 14:17:54 +01:00
Luis Ramos
4590db1cc2
Fix view spec by adding mocks to helper methods
2021-04-14 09:20:30 -07:00
Luis Ramos
f61c04e314
Adapt helpers to make view spec green
2021-04-13 16:54:32 -07:00
Luis Ramos
abd6faf686
Adapt routes and helpers to make view spec green
2021-04-13 16:54:32 -07:00
Luis Ramos
2c05478b2f
Adapt routes and helpers to make view spec green
2021-04-13 16:54:32 -07:00
Luis Ramos
049c2b59ca
Adapt routes and helpers to make view spec green
2021-04-13 16:54:32 -07:00
Andy Brett
f784db0127
Merge pull request #7100 from luisramos0/view_spec_in_rails5
...
Rails 5-2 - View spec in rails5
2021-03-22 16:42:56 -07:00
Jean-Baptiste Bellet
e9b833c27b
Add unit test for cart page
2021-03-18 09:40:04 +01:00
Luis Ramos
c5581fa25f
Rename spec/support/CheckoutHelper to resolve colision with app/helpers/CheckoutHelper
2021-03-16 23:20:11 +00:00
Luis Ramos
138522bd17
Add helper to view spec to make it work in rails 5
2021-03-16 23:20:11 +00:00
Matt-Yorkley
aebd785a54
Fix persistence issue in view test setup
2021-02-18 14:58:25 +00:00
Luis Ramos
773f733c8e
Adapt matchers to capybara v3
2020-12-10 23:05:15 +00:00
Luis Ramos
80e59a920e
Adpat matcher to capybara v3
2020-12-10 23:01:01 +00:00
Luis Ramos
2b8f0abe49
Try some mass auto-correct adding frozen-string-literal to all specs
2020-12-03 06:38:24 -08:00
Luis Ramos
bf5fcde885
Fix Lint/UnusedMethodArgument
2020-10-30 16:50:37 +00:00
Luis Ramos
9cb3b0b14a
Fix rubocop issue Layout/FirstArrayElementIndentation
2020-10-30 16:50:37 +00:00
Eduardo
71876ca23a
change spec to use new authentication helper and user factory
2020-09-04 08:48:16 -03:00
Eduardo
07e5f8ed8d
fix typo on title of specs
2020-09-04 08:45:58 -03:00
Eduardo
11684dae65
hide environment on payment methods when user is not admin
2020-09-04 08:45:57 -03:00
Maikel
cad79d74c8
Merge pull request #5696 from jeduardo824/enhancement/5210-action-buttons-on-all-tabs
...
Enhancement/5210 - Add Actions dropdown menu to all pages of Order Details menu
2020-08-25 15:39:50 +10:00
Eduardo
a860b5ea42
remove unnecessary code
2020-08-09 20:45:33 -03:00
Eduardo
422958ed6f
create specific spec for order links partial
2020-08-02 20:02:36 -03:00
Luis Ramos
a2ebc614d9
Rename AuthenticationWorkflow to AuthenticationHelper
2020-07-27 15:32:35 +01:00
Luis Ramos
1af4bf6994
Replace usage of create_enterprise_user with :user factory
2020-07-27 14:44:23 +01:00
Eduardo
bda47d97ee
add view specs to admin edit page
2020-07-20 21:08:04 -03:00
Luis Ramos
93a2e57bc6
Merge pull request #5538 from jeduardo824/bug/4592-payment-methods-table-in-dashboard
...
Fix Payment Methods table to show proper provider name
2020-06-25 20:32:04 +01:00
Luis Ramos
8a9dae0ee2
Run rubocop autocorrect
...
This is the result of bundle exec rubocop --auto-correct
2020-06-22 12:23:10 +01:00
Eduardo
27c76cfae2
add view spec to replace feature spec
2020-06-13 14:24:17 -03:00
Maikel Linke
25b11f1f4b
Display delivery details in the header
2020-03-20 15:51:49 +11:00
Maikel Linke
22384cb4da
Display shipping and billing address on invoices
2020-03-20 15:14:24 +11:00
Maikel Linke
03fa3e2269
Find last payment deterministically
2020-02-20 15:59:57 +11:00
Maikel Linke
2c2023df03
Show last payment method in order confirmation
...
If we had multiple failed payments and then a successful payment, the
order confirmation was displaying the payment method of the first failed
payment. That was confusing and is now changed to the last payment
method.
2020-02-20 15:59:56 +11:00
Maikel Linke
7306d379a5
Display payment method literally
...
Don't allow for HTML and potentially bad scripts. But this also prevents
accidental display errors. If someone wrote, "We only take <cash>", it
would mess with the site.
2020-02-20 15:59:56 +11:00
Maikel Linke
e15c61d862
Add spec for order confirmation view
2020-02-20 15:59:56 +11:00
luisramos0
a6655623d0
New admin orders edit view spec and workaround (current_ability) to make view specs work
2019-07-15 21:59:36 +01:00
luisramos0
2a2d05ad39
First view spec in OFN testing the print invoice button display in the orders list page
2019-07-15 21:59:36 +01:00