Laurel16
bfd396e644
Add instagram handler validator
...
update entreprise model to match the correct pattern for instagram attribute & add migration to correct wrong links in db + test
2022-12-08 15:22:05 +01:00
Sigmund Petersen
52487a270d
Merge pull request #9889 from mkllnk/dfc-products
...
Activate DfcProvider with feature toggle, not prod
2022-11-16 12:26:44 +01:00
filipefurtad0
1a3c4008fd
Applies helpers to relevant specs
2022-11-15 19:03:14 +00:00
Konrad
d544233bac
Merge pull request #9780 from jibees/9777-select-the-right-country
...
Admin, Enterprise Details: Fix country selection on business address panel
2022-10-27 14:32:52 +02:00
Maikel Linke
56667f6142
Simplify test setup with enabled features
...
If a feature is activated or not depends on the database which is reset
after each test scenario. So enabling a feature doesn't leak into other
scenarios.
Just enabling the feature is less code and more realistic than mocking a
method call.
2022-10-27 15:32:05 +11:00
Jean-Baptiste Bellet
edb2645af1
Add a country to test db and modify one spec
...
Check that businness address changes are ok
Test with another county since only one country and one state couldn't spot the fact that when changing country it needs to change also states selector
2022-10-26 11:21:44 +02:00
Cillian O'Ruanaidh
62cd507fb9
Stub Spree::Config.stripe_connect_enabled instead of changing it before and back after tests
...
It's less code and sometimes there can be issues when config cache values are changed.
Co-authored-by: Maikel <maikel@email.org.au >
2022-10-21 17:21:31 +01:00
Maikel Linke
9da6f862cd
Stabilise pending spec
2022-10-12 16:49:29 +11:00
Maikel Linke
3eb597bff4
Fix specs which accidentally reversed relationships
2022-10-12 16:49:29 +11:00
Maikel
058a45f4e5
Merge pull request #9442 from jibees/8904-display-fees-name-instead-of-type-on-invoices
...
Display fees name instead of type on invoices
2022-10-10 13:15:01 +11:00
Maikel Linke
52e934ec2b
Consistently use our FeatureToggle module
...
Direct calls to Flipper have the downside that we can't add any new
functionality like storing the feature in the database when used.
2022-10-08 16:23:17 +02:00
Jean-Baptiste Bellet
8b89c901ef
Do not display "Admin and Handling" ie. fees total
2022-10-08 10:00:57 +02:00
filipefurtad0
977916cb11
Adds 2 sec sleep time on other flaky examples
2022-10-04 20:58:30 +01:00
filipefurtad0
f4edfcefa2
Adds 2 sec sleep time
2022-10-04 20:17:14 +01:00
filipefurtad0
7b592fd80b
Adds assertion after page visit to promote page loading
2022-10-04 12:27:58 +01:00
filipefurtad0
8e6f828f66
Splits it cases into respective contexts
2022-10-03 19:30:57 +01:00
filipefurtad0
fa05327342
Adds assertions on clearing searches
...
Asserts on page contents
2022-10-03 19:12:27 +01:00
filipefurtad0
cafa17ec13
Splits test into two assertions
2022-10-03 19:12:27 +01:00
filipefurtad0
538844a1fb
Removes _visible: true_ from system specs
2022-09-27 17:32:25 +01:00
Jean-Baptiste Bellet
86cb86e8b5
Add a flash error where no available shipping methods to the customer
...
+ update specs as well
2022-09-12 09:42:26 +02:00
Jean-Baptiste Bellet
9dd3a8bc5a
Store all distributors shipping methods to one array
2022-09-12 09:42:26 +02:00
filipefurtad0
215f3e97ad
Splits tests into existing/non-existing shops
...
Sets failing tests as pending for issues #9649 and #5467
2022-09-09 13:08:45 +01:00
Maikel Linke
1d04510365
Update totals on summary step
2022-09-05 15:54:33 +10:00
Maikel Linke
6c7a089527
Recalculate tax on summary step
2022-09-05 15:14:08 +10:00
Maikel Linke
eaca953106
Create only required test data for speed
...
It reduced the execution time by 5% on my machine (2-3 seconds).
2022-09-05 13:42:47 +10:00
Maikel Linke
cc5125f49e
Apply related db assertions in tax spec
...
Somehow the helper methods were testing two different orders even though
each spec is using only one order, the one which is currently being
checked out by the user.
So I brought the code closer into the example to easier see what is
related and tested.
I also changed the assertions for the pending spec but can't really
verify them yet until I have completely working code.
2022-09-05 11:40:47 +10:00
Maikel Linke
3f2b3b88eb
Re-use in-memory test objects
...
And reduce code by referring to objects instead of just ids.
2022-09-05 10:59:15 +10:00
Filipe
ae391f8af4
Merge pull request #9414 from Philwi/user-generates-api-key
...
Let users view and regenerates api key
2022-08-17 21:36:13 +01:00
Filipe
cedfa35a98
Merge pull request #9341 from jibees/9336-redirect-to-login_path-if-user-is-disabled
...
Disabled_at logic: redirect to login path if user is disabled
2022-08-17 20:33:57 +01:00
Filipe
5c41022f76
Merge pull request #9165 from filipefurtad0/tax_split_checkout
...
[Split Checkout] Adds spec to test Tax charges (repoducing issue #9153 )
2022-08-16 19:30:32 +01:00
Maikel Linke
56d8d1eaf7
Scope helper methods to relevant test cases
...
Global methods are usually not a good idea.
2022-08-15 17:34:21 +01:00
Maikel
a3fa4a0d3e
Merge pull request #9543 from filipefurtad0/remove_selenium_webdriver
...
Removes selenium-webdriver and webdriver gems; updates spec_helper
2022-08-15 17:34:46 +10:00
Maikel Linke
d86aeaa22a
Remove unnecessary after-spec code
2022-08-15 16:51:53 +10:00
filipefurtad0
97f18d7b86
Changes names from helpers to prevent leak between specs
2022-08-15 16:13:37 +10:00
filipefurtad0
bded15a869
Updates spec for inclusive; adds pending related to epic 7540
2022-08-15 16:13:37 +10:00
filipefurtad0
fff5927cdf
Changes pick-up into delivery shipping method
...
On line 62 we set the dependency on the shipping address to calculate taxes. Therefore, we might be better off mocking a delivery-shipping method instead of a pick-up shipping method and assuring the customers shipping address is used for this accordingly.
2022-08-15 16:13:37 +10:00
filipefurtad0
f9881b9af5
Removes if blocks from assert_db_
...
Initianlly, I thought it would be agood idea to have both setups - for included and added tax - in the same file. Hence, the private section would need to cover all cases. The PR has now two separate files, each one for the two tax types, so it seems unecessary to have these if blocks there. I think it is more readable this way.
2022-08-15 16:13:37 +10:00
filipefurtad0
79182a2d32
Removes test on 9131; moves test on 9153 into respective context
2022-08-15 16:13:37 +10:00
Jean-Baptiste Bellet
77eec6e6f3
Check step params and redirect if step is inconsistent to order state
2022-08-15 16:13:37 +10:00
filipefurtad0
a6e3f43344
Adds bug reproducing steps
2022-08-15 16:13:36 +10:00
filipefurtad0
f525a9f5da
Adds inclusive tax-spec
2022-08-15 16:13:36 +10:00
filipefurtad0
2427bfa6ea
Spec tax charging on legacy and split checkout
2022-08-15 16:13:36 +10:00
Filipe
689720b749
Merge pull request #9437 from jibees/8897-preselect-default-card-and-do-not-allow-to-charge-if-no-card-is-marked-as-default
...
User account, Credit cards: Do not allow to check "Allow charges" if no credit cards marked as default
2022-08-11 16:34:42 +01:00
filipefurtad0
1fd09617cb
Changes cookies_spec from feature to system spec
2022-08-11 10:44:22 +01:00
Philipp Winkler
bf53a02270
Add api key toggle view checkbox
2022-08-07 09:48:49 +02:00
filipefurtad0
8b146fc72a
Adds included_in_price trait on broken specs
2022-08-05 16:41:35 +01:00
Rachel Arnould
cf26c465cc
Merge pull request #9390 from binarygit/feature/update-orders-table
...
Feature/update orders table
2022-08-02 10:10:03 +02:00
Jean-Baptiste Bellet
0bb90d764c
Allow charges is disabled if no saved cards marked as default
2022-07-26 14:42:55 +02:00
Jean-Baptiste Bellet
34c8748b9c
Mark the next credit cards with payment profile as default
2022-07-26 14:42:55 +02:00
binarygit
5e7bfc05d2
Remove link from order number in open/past orders table
2022-07-13 20:10:45 +05:45