Maikel Linke
3aa4c2a25f
Import more fields from Litefarm
2025-12-10 16:24:54 +11:00
David Rodríguez
852e7fa81e
Fix all existing prettier issues
2025-10-22 15:30:36 +02:00
Rachel Arnould
c4c266246c
Merge pull request #13507 from rioug/tag-rules-remove-angular
...
[Variant Tags] Remove angular from tag rule admin page
2025-10-15 23:16:05 +02:00
Maikel Linke
d3319cfd69
Replace global spec helpers with faster let
2025-10-10 16:44:50 +11:00
Maikel Linke
378b5e656e
Use already parsed JSON in specs
...
Existing helpers provide indifferent access already.
2025-10-10 16:44:08 +11:00
Gaetan Craig-Riou
55f162ff4a
Create tag when tag input lose focus
...
This reflect the current behaviour of the angular tag input.
Plus fix spec helper.
2025-09-29 09:36:19 +10:00
Gaetan Craig-Riou
771573af1c
Fix system spec to work with refactored screen
2025-09-24 10:40:43 +10:00
Maikel Linke
6d284023fe
Configure rake specs in one place
...
So we don't have to add it to every rake spec file.
2025-09-22 17:27:58 +10:00
Maikel Linke
570b72868b
Simplify task loading code
2025-09-22 17:27:58 +10:00
Maikel Linke
286d9f8e7d
Remove unneeded declaration of Rails environment task in specs
2025-09-22 17:27:58 +10:00
Maikel Linke
94b75540e4
Replace Timecop with Rails' time helpers
...
Rails 4.1 added time helpers but we never bothered using them. But now
I'm getting rid of the Timecop dependency and use standard helpers.
Beware though that the new helpers always freeze time. When you travel
to a certain date then the clock stops ticking while Timecop maintained
the passing of time.
The freezing of time could cause problems if you are trying to enforce a
timeout. But all current specs don't seem affected.
In most cases, the freezing will make it easier to avoid flaky specs.
2025-08-22 16:57:04 +10:00
Maikel
910ded1a8c
Typo
...
[skip ci]
2025-08-05 13:49:44 +10:00
Maikel Linke
f532c4712e
Load rake tasks only once for code coverage
...
Apparently, Rake's way of reloading the task code confuses the code
coverage report. Code tested by rake task specs was not recognised as
covered even though it was.
2025-08-05 12:44:13 +10:00
David Cook
63b864253d
Merge pull request #13442 from mkllnk/puffing-billy
...
Add gem puffing-billy to record browser requests
2025-08-04 12:35:34 +10:00
Maikel Linke
d01474ebcd
Ignore Chrome's automatic requests to Google services
2025-07-30 12:25:34 +10:00
Maikel Linke
f3f43225cb
Remove unused test helper
2025-07-29 13:42:51 +10:00
cyrillefr
7f842d77ea
Fixes RSpec Rails HaveHttpStatus cop in services & support
2025-05-14 11:47:03 +02:00
Gaetan Craig-Riou
347d20c3fb
Add system test for tags
2025-05-05 14:57:02 +10:00
Gaetan Craig-Riou
57af1de680
Remove closeAfterSelect option
...
We need the dropdown to stay open after select so that a multi-selection
select work as expected.
Docs : https://tom-select.js.org/docs/
2025-05-05 14:54:55 +10:00
Carlos Chitty
d0c687650e
Autocorrect Style/HashEachMethods offenses
2025-04-29 15:16:34 -04:00
Carlos Chitty
17a5b5e620
autocorrect Style/ArrayIntersect offenses
2025-04-29 14:20:50 -04:00
cyrillefr
6fb1737672
Rename get method in spec web helper
2025-04-24 09:29:40 +02:00
cyrillefr
8d5292c4ed
Rename set method in spec helper and calls
2025-04-24 09:29:40 +02:00
Konrad
d97cb9ccb3
Update specs
2025-04-21 20:11:50 +02:00
Maikel Linke
8a8602158b
Test link in HTML email with Capybara
2025-03-27 12:06:05 +11:00
Filipe
9baed8536c
Merge pull request #13121 from rioug/13054-out-of-stock-autoremove
...
Autoremove/update item from the cart if stock changed during checkout
2025-02-20 22:35:40 -06:00
Gaetan Craig-Riou
c73c2dd8a8
Add basic out of stock modal
2025-02-04 15:39:47 +11:00
Filipe
54fad01a91
Merge pull request #13104 from mkllnk/test-seeds
...
Remove unused preference default_country_id
2025-01-30 21:59:46 -06:00
Filipe
e2161660b3
Merge pull request #13090 from mkllnk/replace-spree-roles
...
Replace spree roles
2025-01-30 21:30:56 -06:00
Maikel Linke
6885184bcc
Remove unused preference default_country_id
2025-01-28 16:31:45 +11:00
Maikel Linke
f21f8f38da
Compile assets on demand in test environment
...
We still do it in CI to prevent flaky specs. Otherwise, when a spec
needs to compile assets, it may time out.
2025-01-24 12:10:09 +11:00
Maikel Linke
d49cea5e3d
Use admin flag instead of user role
2025-01-22 14:59:49 +11:00
Maikel Linke
c1f8d3035a
Sleep after selecting time for stability
2024-12-20 11:15:49 +11:00
Maikel Linke
f74492190d
Select time like the user does
...
It makes it easier to understand. It didn't improve stability.
2024-12-20 11:15:49 +11:00
Maikel Linke
a30f764a22
Add timepicker helper with added expectation
2024-12-19 16:29:33 +11:00
Maikel
de938f6f10
Merge pull request #12949 from rioug/12859-use-VINE-voucher
...
[City OFN Voucher] A shopper can use a VINE voucher
2024-12-03 14:04:44 +11:00
Gaetan Craig-Riou
73819a4638
Fix unique validator for vouche code
...
Paranoia doesn't support unique validation including deleted records:
https://github.com/rubysherpas/paranoia/pull/333
We use a custom validator, ScopedUniquenessValidator to avoid the issue
2024-11-28 13:35:01 +01:00
Maikel Linke
73a1698aad
Add live test for Bugsnag
...
Needs human to review Bugsnag account.
2024-11-21 15:28:19 +11:00
Maikel Linke
6c431d4052
Fixup specs to use the new datepicker tools
2024-10-17 15:08:02 +11:00
Maikel Linke
b9a72381fc
Fix datepicker infinite loop
...
The new default dates were not aligned with the assumption that the
datepicker would open on the current date. The datepicker helper would
try to navigate to the previous month or next month in relation to the
reference date. Now with the wrong reference date, it would infinitely
go into the past or future, not finding the right year and month.
I chose a more robust approach of setting the year and month directly
which the user can do as well. Then we don't need a reference date.
2024-10-17 15:06:56 +11:00
Gaetan Craig-Riou
1a30cf6495
Hide VINE token
2024-10-02 16:19:03 +10:00
filipefurtad0
8500f6c198
Addresses reviews. The biggest change is moving the table CSS
...
into its helper, which touches other system specs (namely orders_and_fulfillment_spec.rb).
Rubocop fixup
2024-09-09 18:07:57 -06:00
filipefurtad0
2e5c526170
Adds basic coverage on report file download
...
Moves file download into report helper
Removes pdf file assertation
Removes test on PDF file on sales tax report
Removes PDF testing from helper
2024-09-09 18:07:57 -06:00
filipefurtad0
32e32117e3
Adds test case around hub filters
2024-09-09 18:07:57 -06:00
Joseph Johansen
5086f2d8b5
Fix rubocop Style/Send group
2024-07-23 14:18:26 +01:00
filipefurtad0
f7c47fecc4
Removes the need for using overlapping_elements_helper
...
Improves the specs so we don't need to recurr to overlapping elements clicks, and removes the respective helper
2024-07-11 10:58:57 +10:00
Gaetan Craig-Riou
cfc51f399f
More rebase fix
2024-07-03 13:07:17 +10:00
Gaetan Craig-Riou
61750c51b3
Fix enterprise system spec
2024-07-03 11:15:10 +10:00
filipefurtad0
5cf8eb5efc
Extracts helper methods into helper file
...
The idea is to split the main spec into several smaller ones; these would share the helper file
2024-07-02 16:45:46 +10:00
filipefurtad0
0a4c2a1903
Updates tom_select_helper.rb with the recent changes from master
2024-07-01 12:24:00 +10:00