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 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
filipefurtad0
308c559810
Fixes case on assertions, on failing specs
...
Selects white_label tab with trigger(click)
Scrolling down did no fix it, it still fails https://github.com/openfoodfoundation/openfoodnetwork/actions/runs/6526149195/job/17719815533?pr=11645 , selecting the element with trigger(click) should work
Updates invoice tests
2024-07-01 12:09:14 +10:00
zanetagebka
a2a670c848
Fix cops StringConcatenation
2024-06-11 15:17:32 +10:00
Neal Chambers
728926cc9a
Fix Layout/LineLength
2023-07-19 08:39:26 +09:00
Jean-Baptiste Bellet
bb211bfc84
Allow HTML via trix editor for custom tab content
...
+ update spec as well
2023-05-25 09:19:51 +02:00
Jean-Baptiste Bellet
73f55ae776
Implements daterangepicker for /admin/orders
...
+ update specs as well
2022-10-08 16:36:26 +02:00
filipefurtad0
8d20174a0f
Deletes doubled unused pick_date method
2021-12-03 11:06:04 +00:00
filipefurtad0
05de253ad7
Adds pick_date and pick_datetime helpers
2021-12-03 10:54:28 +00:00
Thierry Jet
fd5e34bf5c
Few changes in test files for date(time)picker in order to make tests more readable
2021-11-03 09:57:23 +01:00
Thierry Jet
8eff2716ed
Modify choose_today_from_datepicker to avoid possible ambiguous match with the find
2021-10-29 11:06:24 +02:00
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
Jean-Baptiste Bellet
fbe53a3a2e
Use UI to fill date into datetimepicker
...
This creates a new method to select date and time from datetimepicker.
Field cannot be filled "manually" (ie. by entering its value)
2021-02-22 12:58:29 +01:00
Jean-Baptiste Bellet
fbd6db89c9
avoid selecting the day in the previous month
...
When you select date at the end of the month (27,28,29,30,...) it is likely possible that this date is already displayed by the calender but for the previous month.
Avoid this by using css selector :not()
2021-02-08 22:09:06 +01:00
Jean-Baptiste Bellet
b72ef18ad6
update datepicker_helper and add method to select date
...
Introduce a new method `select_date_from_datepicker` and then use it on test
2021-02-08 22:09:06 +01:00
Jean-Baptiste Bellet
3ab1d728a1
update helper with right selectors
...
As we now use flatpickr, need to update css/xpath selectors used by tests.
2021-02-08 22:09:06 +01:00
Jean-Baptiste Bellet
e3db4e2e86
update test to match new datepicker
...
And use the method choose_today_from_datepicker
2021-02-08 22:09:06 +01:00
Luis Ramos
2b8f0abe49
Try some mass auto-correct adding frozen-string-literal to all specs
2020-12-03 06:38:24 -08:00
Kristina Lim
fdede83086
Support selecting date in next months
...
This was causing failures when selecting tomorrow when running tests on
the last day of the month.
2019-02-07 04:39:43 +08:00
Kristina Lim
da4d6a092a
Add spec helper for choosing today from datepicker
2019-01-26 02:03:56 +08:00