Andy Brett
e4be521632
Merge pull request #8203 from YasuhiroYoshida/adjust-visibility-of-enterprises-on-hub
...
Change visibilities of hubs on group page
2021-10-07 08:00:37 -07:00
Nihal M. Kelanthodika
d85a109a21
Merge pull request #7973 from apricot12/HQ_address_in_business_details
2021-10-07 18:32:24 +05:30
Nihal M. Kelanthodika
f7124ee327
Add business address form feature spec
2021-10-06 15:06:57 +05:30
Nihal M. Kelanthodika
c632442466
Update unused company field to 'unused'
2021-10-06 15:06:56 +05:30
Jean-Baptiste Bellet
786b198f4d
Create an updateinput controller
...
- that update the targets input value to the value stored in data attribute
- Add tests
2021-10-06 15:06:56 +05:30
Nihal
372326debc
Updated validation to include phone and edit address_spec to requires phone
2021-10-06 15:06:56 +05:30
Nihal
90038ff250
Add test coverage for business_address association in enterprise model
2021-10-06 15:06:56 +05:30
filipefurtad0
6025d43f0d
Updates checkout_spec into system
2021-10-06 13:34:59 +11:00
Andy Brett
7a49b304d1
Merge pull request #8279 from Matt-Yorkley/orphaned-adjustments
...
Orphaned adjustments handing
2021-10-05 17:19:58 -07:00
Andy Brett
c8419940bf
Merge pull request #8264 from filipefurtad0/orders_spec_update_2
...
Orders spec update
2021-10-05 15:50:03 -07:00
filipefurtad0
18ff3f52b7
Moves spec from feature into system folder
2021-10-06 09:15:02 +11:00
filipefurtad0
076907d56b
Changes spec config from feature into system
2021-10-06 09:15:02 +11:00
filipefurtad0
5c881431d3
Switches assertions order
2021-10-06 09:15:02 +11:00
Andy Brett
f3ef3bb052
Merge pull request #8270 from achauve/8161-fix-sorting-admin-orders-by-total
...
Fix sorting admin orders by total
2021-10-05 14:44:59 -07:00
Matt-Yorkley
19daf1d2fb
Update adjustment unit tests
2021-10-05 22:40:37 +01:00
Andy Brett
c2c9684e66
Merge pull request #8240 from mkllnk/fix-serializer-spec
...
Load referenced lib class for independent spec run
2021-10-05 14:34:40 -07:00
Andy Brett
a06326d15f
Merge pull request #8239 from mkllnk/fix-reports-spec
...
Fix order dependent reports spec
2021-10-05 14:34:05 -07:00
Andy Brett
ec0bb63b42
Merge pull request #8179 from filipefurtad0/feature_into_system
...
Feature into system specs
2021-10-05 14:27:29 -07:00
Matt-Yorkley
65f08ee8f4
Deal with edge cases where an adjustment is left referencing a deleted item
2021-10-04 17:55:27 +01:00
Adrien Chauve
f256bb7d28
Add new failing test on sorting orders by total (api/v0/orders)
2021-10-01 18:32:59 +02:00
filipefurtad0
6aed6f186d
Adds assertion on filtering by completion date
2021-09-30 17:29:43 +01:00
filipefurtad0
258f797680
Adds assertion on filtering by distributors
2021-09-30 17:01:25 +01:00
filipefurtad0
07e92d343c
Adds assertion on displaying complete but empty orders
2021-09-30 16:22:42 +01:00
filipefurtad0
4ba69850be
Adds assertion on en/dis-abling the Print Invoices button
2021-09-30 15:45:03 +01:00
filipefurtad0
3ee1cc9578
Adds assertion on en/dis-abling the Print Invoices button
2021-09-30 15:43:01 +01:00
Matt-Yorkley
76c9f38fb6
Fix display of "inventory only" radio buttons
...
Previously the two radio buttons were not showing which option was set; both options were blank even if one had been selected.
2021-09-30 13:30:23 +01:00
filipefurtad0
81890a4e21
Replaces 'background' with 'before' (squashing)
...
Replaces 'background' with 'before'
Replaces 'background' with 'before' in other files
Fixes typo on products_spec.rb
2021-09-28 11:22:35 +01:00
filipefurtad0
6f694e2cab
Standardise spec block naming
...
The `feature` and `scenario` names are aliases only available in feature
specs and not needed. It's confusing to have different names and we can
easily move feature specs to system specs when using standard names.
2021-09-28 08:24:05 +10:00
Maikel Linke
f17cf1f1f4
Load referenced lib class for independent spec run
...
This spec file tried to access a class without loading the code. That
worked in usual spec runs when other specs were run first which
loaded the whole lib directory.
2021-09-27 17:21:35 +10:00
Maikel Linke
cb2c6835c4
Standardise default country and state
...
The OFN software was first written in Melbourne and a lot of spec code
relies on the state Victoria being in the database. When we imported
Spree code, it came with its default state Alabame in the USA. Having
two different defaults is confusing and caused specs to fail in rare
circumstances. Let's standardise it here which will also open the path
to removing the seeding of test data and the exclusion of states and
countries in the database cleaner.
2021-09-27 16:37:50 +10:00
Maikel Linke
a91bb6e355
Fix order dependent reports spec
...
Depending on the order of spec execution, it was possible that a factory
created the default state "Alabama" with the default country "USA"
instead of using the usual seed data of "Victoria" in "Australia". Some
specs rely on "Victoria" though and we now make sure that it's created
even if another spec created another country first.
2021-09-27 11:01:00 +10:00
Andy Brett
6a50f68b52
Merge pull request #8217 from filipefurtad0/orders_spec_update
...
Orders page spec update
2021-09-24 13:41:06 -07:00
Jean-Baptiste Bellet
e82e93e1cc
Update test to add more case with finalized order with no line items
...
Those empty order but finalized must be returned by the API
2021-09-23 11:06:58 +02:00
Maikel
5b5693dc26
Merge pull request #8180 from jibees/7504-resolve-rounded-errors
...
Avoid rounded with float numbers errors with javascript
2021-09-23 09:56:03 +10:00
filipefurtad0
6000d4c985
Declares variables with let! avoiding repedition (DRY)
2021-09-21 16:33:17 +01:00
filipefurtad0
f2bd45162b
Updates base_spec_helper.rb to make system specs work
2021-09-21 16:00:41 +01:00
filipefurtad0
536d4b9894
Updates orders_spec.rb into system spec
2021-09-21 15:58:45 +01:00
Maikel
02a10ede15
Merge pull request #7938 from dacook/product-image-import
...
Add script to import product images from URL
2021-09-20 16:57:23 +10:00
Maikel
a3c31f7d86
Revert "Kill stripe connect"
2021-09-20 08:39:34 +10:00
Yasuhiro Yoshida
8090945c34
Change visibilities of hubs on group page
...
Issue:
https://github.com/openfoodfoundation/openfoodnetwork/issues/5106
Hubs on group page for consumers are displayed unconditionally.
But they should only appear under the following conditions: Visible.
In addition, those that are active should only be filled with red color
when they have open order cycles.
This commit apply these rules and changes the visibility of each hub on
"Our Hubs" tab of group page for consumers accordingly.
2021-09-17 17:12:08 +03:00
Matt-Yorkley
f4c86a1b51
Merge pull request #8061 from Matt-Yorkley/turbo-checkout
...
Split Checkout new toys
2021-09-17 10:48:59 +02:00
Matt-Yorkley
02bcb7bcc7
Merge pull request #8192 from Matt-Yorkley/orders-path-issue
...
Fix order_path issue in cart page
2021-09-16 16:16:36 +02:00
Andy Brett
f28200164b
Merge pull request #8154 from meronokbay/8098-custom-modal-order-deletion
...
Replaced the default alert and confirm modals in the order page by custom modals
2021-09-15 09:22:58 -07:00
Matt-Yorkley
0c879dc4c9
Fix order_path issue in cart page
...
The order_path route wasn't being inferred correctly from this Spree controller, causing errors to be thrown in the cart page if the number of editable orders was precisely one:
ActionView::Template::Error: undefined method `order_path'
2021-09-15 10:54:59 +01:00
Nihal M. Kelanthodika
9d216f0cea
Merge pull request #8160 from apricot12/8019-Delivery_report
...
Show order total in Delivery/Payment Method reports instead of first …
2021-09-15 13:11:43 +05:30
Jean-Baptiste Bellet
ba09618374
Avoid rounded with float numbers errors with javascript
...
0.7/0.001 = 699.9999999999999
Use Math.round() to avoid this.
2021-09-14 10:45:31 +02:00
Meron Ogbai
94ff59ebab
Make order spec click clearer
2021-09-11 13:37:14 +03:00
Andy Brett
1ec9cce439
Merge pull request #8163 from mkllnk/migration-specs
...
Remove problematic migration spec
2021-09-10 10:32:29 -07:00
Nihal
98a879a0e9
Restore removed spec to profile_storer_spec
2021-09-10 14:43:34 +05:30
Nihal Mohammed
eb17c208f9
Update stripe_stubs to handle stripeSCA
2021-09-10 14:43:34 +05:30