Jean-Baptiste Bellet
adcdca812d
Delete that getScale method which is now useless
...
since we now rely on the serialized variant_unit_scale
2022-03-08 14:58:34 +01:00
Jean-Baptiste Bellet
aa71e12020
Serialize variant_unit_scale to be used in the Bulk Order Managment
...
to retrieve scale of the product
2022-03-08 14:55:25 +01:00
Filipe
53d1994b2a
Merge pull request #8956 from Matt-Yorkley/welsh-javascript-fixes
...
Fix Angular interpolation for translations with apostrophes
2022-03-07 12:23:04 +00:00
Filipe
5606be7199
Merge pull request #8944 from jibees/8940-display-update-button-on-order-unless-order-is-complete
...
Split checkout: Display "Update" button on the order table page unless order is complete
2022-03-07 11:58:34 +00:00
Filipe
be2898f5a2
Merge pull request #8916 from jibees/8894-login-during-guest-checkout
...
SplitCheckout: as guest user, after login should redirect to the first step of checkout
2022-03-07 09:20:12 +00:00
Filipe
80ad18a684
Merge pull request #8953 from jibees/8951-load-stripejs-in-test-environment
...
Change css selector from stripe elements in test environment.
2022-03-04 09:57:28 +00:00
Matt-Yorkley
6729119489
Fix Angular interpolation for translations with apostrophes
2022-03-03 20:59:04 +00:00
Jean-Baptiste Bellet
f8f57a31db
Use the right selector
...
In test env. we don't use the stripejs but a mock. Slightly different.
2022-03-03 14:14:39 +01:00
Filipe
0a9c3b1538
Merge pull request #8932 from filipefurtad0/change_paypal_spec
...
Clarifies context in checkout_paypal_spec and implements tests as shared examples
2022-03-02 12:21:13 +00:00
Maikel
9a8082e35c
Merge pull request #8947 from openfoodfoundation/dependabot/npm_and_yarn/karma-6.3.17
...
Bump karma from 6.3.16 to 6.3.17
2022-03-02 11:27:28 +11:00
Jean-Baptiste Bellet
f47de45346
Reference splitcheckout as a checkout redirect
...
This stored in session value is used to redirect after login
Update tests as well, thanks @filipefurtad0 ! 🙏
2022-03-01 15:12:18 +01:00
Jean-Baptiste Bellet
e14dad1575
Update test on payment step
2022-03-01 14:51:24 +01:00
Jean-Baptiste Bellet
3e85762143
Create a test that test the redirection after the split checkout login
...
Should be redirected on the first step
2022-03-01 14:25:41 +01:00
Jean-Baptiste Bellet
96d4ee3f4f
Extract to a method in the split checkout helper
2022-03-01 14:25:08 +01:00
Jean-Baptiste Bellet
2976b0717c
Display "Update" button on the order table page unless order is complete
...
With the split checkout, we can access this page between the different steps: for this cases, cart actions should be displayed
2022-03-01 10:11:27 +01:00
dependabot[bot]
f573423d3a
Bump karma from 6.3.16 to 6.3.17
...
Bumps [karma](https://github.com/karma-runner/karma ) from 6.3.16 to 6.3.17.
- [Release notes](https://github.com/karma-runner/karma/releases )
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md )
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.16...v6.3.17 )
---
updated-dependencies:
- dependency-name: karma
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-01 09:05:25 +00:00
Filipe
d052c4f8a4
Merge pull request #8869 from filipefurtad0/remove_signup_string
...
Removes signup string from private shop login screen
2022-03-01 08:20:06 +00:00
Maikel
c44de8dbb3
Merge pull request #8937 from openfoodfoundation/dependabot/npm_and_yarn/url-parse-1.5.10
...
Bump url-parse from 1.5.7 to 1.5.10
2022-03-01 11:26:43 +11:00
Filipe
1338bcbf57
Merge pull request #8939 from filipefurtad0/stock_spec_checkout_split
...
Checks stock restrictions on checkout split (system spec)
2022-02-28 16:42:58 +00:00
Filipe
d84b6ce2ad
Merge pull request #8772 from filipefurtad0/add_specs_split_checkout_payment
...
[Split Checkout] Adds tests on payments
2022-02-28 16:42:12 +00:00
jibees
eeae67e2d0
Merge pull request #8935 from mkllnk/clean-rubocop
...
Relax our style guide
2022-02-28 15:16:46 +01:00
Filipe
499ad982c3
Merge pull request #8938 from filipefurtad0/controller_spec_checkout_split
...
Adds controller coverage for stock restrictions on split checkout
2022-02-28 10:32:46 +00:00
filipefurtad0
f6304892c2
Adds controller coverage for stock restrictions
2022-02-27 22:01:48 +00:00
filipefurtad0
7a6f3d67e2
Implements shared example; Checks stock restriction on payment step
2022-02-27 21:51:03 +00:00
filipefurtad0
eb56027505
Moves out-of-stock block within correct context
2022-02-27 19:56:45 +00:00
dependabot[bot]
f0cd9de1c3
Bump url-parse from 1.5.7 to 1.5.10
...
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.5.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.7...1.5.10 )
---
updated-dependencies:
- dependency-name: url-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-26 14:40:40 +00:00
Matt-Yorkley
50ab0731d7
Bump nokogiri to 1.13.2
v4.1.20
2022-02-26 14:39:56 +00:00
filipefurtad0
8ac2035d0c
Addresses style issue
2022-02-25 16:47:17 +00:00
filipefurtad0
751e817deb
Renames shared_examples
2022-02-25 16:32:31 +00:00
filipefurtad0
82b6d39191
Re-names payment; addresses style issues
2022-02-25 16:06:26 +00:00
filipefurtad0
daffe333c5
Adds coverage on order completition for Cash/Paypal
2022-02-25 16:06:26 +00:00
filipefurtad0
c4bf36d402
Adds Stripe SCA to shared examples block
2022-02-25 16:06:26 +00:00
filipefurtad0
d336ab52a1
Adds Paypal to shared examples block
2022-02-25 16:06:26 +00:00
filipefurtad0
ae3eb90668
Adds shared examples block, with cash
2022-02-25 16:06:26 +00:00
filipefurtad0
09cd9b8462
Adds a test on payment method requirement
2022-02-25 16:06:26 +00:00
filipefurtad0
9449c7c919
Adds a context for existing test case
2022-02-25 16:06:26 +00:00
filipefurtad0
9dceda7e20
Creates a details test block; moves respective tests inside
2022-02-25 16:06:26 +00:00
Maikel Linke
e6b4f462ef
Revert "Add rubocop config to allow specs to be 300 lines long"
...
This reverts commit 0b51d8b297 .
I think that this config was complicated in the setup and potentially
confusing to have different rules in different places.
It's better to fix those spec files by either making them smaller or
removing the `module` block in the spec. We can reference the modules
explicitely where needed.
2022-02-25 12:05:04 +11:00
Maikel Linke
cee6a0f17f
Declare blocklength rules as agreed upon
...
The acceptance of this pull request will be the "agree" part. :-)
2022-02-25 11:57:43 +11:00
Maikel Linke
7acae6522b
Relax cyclomatic complexity to community default
...
Why should we be more strict than the rest of the world?
2022-02-25 11:56:33 +11:00
Maikel Linke
2d1e746c64
Remove default values from contested settings
...
We can just use what the Rubocop community uses as default and we don't
need to spell it out again.
2022-02-25 11:51:35 +11:00
Maikel Linke
3382c1d0bb
Relax some contested metrics rules
...
Rubocop often complains while we think that the code is totally fine. I
would like to achieve the default values one day but there are more
important issues at the moment.
2022-02-25 11:45:15 +11:00
Maikel Linke
0c89479de4
Update rubocop todo list
2022-02-25 11:05:36 +11:00
Maikel Linke
b999673dfc
Remove old version of relaxed styled guide
...
We had an old version under "contested settings" and it looks like some
of them were modified. I hope that our new, separate file will
discourage manual tweaks.
We can include the relaxed rules from a gem as well. Let's see if we
need that complexity one day.
2022-02-25 10:51:54 +11:00
Maikel Linke
1d15f35522
Remove now unnecessary inline rubocop config
2022-02-25 10:46:51 +11:00
Maikel Linke
decab911bd
Use relaxed Rubocop styleguide as basis
...
We then refine it with our own rules.
2022-02-25 10:44:32 +11:00
Matt-Yorkley
0b616aa9ce
Update all locales with the latest Transifex translations
2022-02-24 23:34:16 +00:00
filipefurtad0
10217e2ec8
Sets guest and logged-in user as shared examples
2022-02-24 17:20:11 +00:00
filipefurtad0
9bf0667d04
Moves failed response stub into registered user context
2022-02-24 16:27:03 +00:00
Filipe
36e3f1b7a6
Merge pull request #8883 from jibees/8475-send-email-when-payment-needs-authorization
...
Backoffice order, using stripe payment: when card requires auth, send authorization email to guest user
2022-02-24 13:07:31 +00:00