53 Commits

Author SHA1 Message Date
Christophe Bliard 97579306cd [68380] Save 'Working days only' value upon work package creation
https://community.openproject.org/wp/68380

This bug happened because we have to many different names for the same property:
- "Working days only" (UI)
- `ignoreNonWorkingDays` (frontend)
- `includeNonWorkingDays` (frontend)
- `ignore_non_working_days` (backend and database)
2025-10-15 18:09:09 +02:00
Jan Sandbrink 0b87e7543f Freeze string literals in specs
Rolling out frozen string literals further by freezing all
string literals in core specs.
2025-05-05 09:29:55 +02:00
Henriette Darge 780e41b251 Use a modal instead of a drop-modal for the datepicker 2025-03-12 10:18:11 +01:00
Henriette Darge 7773a24677 Pass the "date_mode" param correctly 2025-02-26 08:36:12 +01:00
Henriette Darge 8d726ced6c Adapt tests to new single-date mode 2025-02-26 08:36:10 +01:00
Christophe Bliard 9584fe3330 refactor: Make test terminology match UI terminology 2025-02-25 09:18:21 +01:00
Christophe Bliard 8b80dc24f0 Fix input selector for milestone in DateEditField 2025-02-25 09:18:16 +01:00
Henriette Darge 952b48a4ca Fix some more test selectors 2025-02-25 09:18:14 +01:00
Henriette Darge 6ab772a88d Move test to cuprite in order to wait for the idle network 2025-02-25 09:18:14 +01:00
Henriette Darge 2e651f74eb Fix some more tests 2025-02-25 09:18:10 +01:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Dombi Attila 8781825d04 Fix button translation in date_edit_field.rb 2024-02-08 16:02:16 +02:00
Christophe Bliard 8fa8584538 Run rubocop --autocorrect on all files
Only the safe cops have run. rubocop version is 1.59.0.
2024-01-05 15:27:09 +01:00
Oliver Günther 92259181ce Adapt specs to use introduced helpers 2023-09-13 09:02:42 +02:00
Aaron Contreras d8b31370d2 Revert "Improve test perf: no wait to activate a field"
This reverts commit f6b44775d4.
2023-07-05 15:08:28 -05:00
Christophe Bliard f6b44775d4 Improve test perf: no wait to activate a field 2023-06-30 12:26:40 +02:00
Christophe Bliard 6f96950074 Switch work_packages/new/new_work_package_spec.rb to cuprite 2023-06-29 09:25:07 -05:00
Christophe Bliard 9e865b4f7b lint: Run rubocop safe autocorrect
Command is `rubocop --safe --autocorrect app lib lib_static modules spec`
2023-03-09 10:25:57 +01:00
Christophe Bliard c43fccf246 lint: autocorrect Style/HashSyntax
command is

    rubocop -A --only Style/HashSyntax app lib lib_static modules spec
2023-03-07 15:07:44 +01:00
Benjamin Bädorf 581d1b7ea9 Fix date modal opening for new resources 2023-01-25 17:58:53 +01:00
Dombi Attila df74324938 Fix some new_work_package_specs 2023-01-25 15:33:48 +02:00
Christophe Bliard 67d8e4f296 [44701] Display selected date in milestone creation page 2022-11-21 08:29:45 +01:00
Christophe Bliard 6d657f794d Make expect_value actually check value
It is a matter of operator precedence. `do end` has lesser precedence
and thus the code

    expect(page).to have_selector("input") do
      ...
    end

is actually evaluated like

    expect(page).to(have_selector("input")) do
      ...
    end

Meaning the block is an argument to the `to` method. Looking into rspec
source code, the block is later discarded. So the value was never
actually checked.

The :css selector has been modified to allow usage of `value` in the
`have_selector` helper, which fixes the issue.
2022-11-21 08:29:45 +01:00
Behrokh Satarnejad a0c3b26732 [44152] On work package creation, dates are not reverted when date picker is cancelled (#11320)
* before closing the modal reset the values

* reset the edit field value in closing the modal

* reset the dates in a separate method

* reset the edit field value in closing the modal

* Add regression spec

* fix eslint error

* Fix double submitting the changes

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
Co-authored-by: Dombi Attila <83396+dombesz@users.noreply.github.com>
2022-09-28 16:06:31 +02:00
Oliver Günther 6c44ee5ae9 Update spec helper to select with new switches 2022-09-27 08:29:30 +02:00
Oliver Günther fe63d6b018 Focus duration field if passed as active field 2022-09-19 16:35:06 +02:00
Oliver Günther 57d6cb38f2 Adapt selection specs now that there is a debounce introduced 2022-09-15 09:33:44 +02:00
Oliver Günther 661bfd9c51 Properly wait for value to be returned before moving in datepicker again
When moving the months and a date is returned from the API, it jumps to
that if it's the start date
2022-08-30 13:50:16 +02:00
Oliver Günther e20aa60baa Add test for duration being active when opening from table 2022-08-30 12:19:34 +02:00
Oliver Günther 09f0c79200 Fix new_work_package_spec 2022-08-30 10:59:33 +02:00
Oliver Günther 85b50e935f Wait for the dates to be applied when selecting them 2022-08-30 10:46:56 +02:00
Oliver Günther e87a76760b Fix new work package creation form post 2022-08-30 09:37:46 +02:00
Oliver Günther 5a52c02a85 Adapt scheduling spec to use the toggle buttons 2022-08-30 08:50:31 +02:00
Oliver Günther a106430704 Add functionality to work package datepicker 2022-08-22 11:13:25 +02:00
Henriette Darge 882355c4d9 Adjust end date if a start date is entered that is after the current start date 2022-07-29 14:09:12 +02:00
Oliver Günther e1d2b5a613 Avoid trying to load relations for new work packages
https://community.openproject.org/wp/43088
2022-07-05 11:21:20 +02:00
Henriette Darge dd15f7b970 Reposition the modal after the calendar is drawn since it affects the modal height and could thus overlap the window border in some cases 2022-06-29 09:13:32 +02:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Henriette Darge 00c540cf7d Remove parent warning check from spec as it is not displayed any more 2022-05-30 14:17:13 +02:00
Henriette Darge 4102cade8b Write test cases for the new date picker logic 2022-05-13 11:22:55 +02:00
Oliver Günther d4bba680a3 [38121] Fix logic when datepicker today link is shown
When the end date is empty, always show the start date today button
and vice versa.

https://community.openproject.org/wp/38121
2021-07-27 14:19:00 +02:00
Behrokh Satarnejad 133c0136c1 Using BEM methodology to change the styles (#9401)
* change some of stylesheets

* change the style naming

* resolve the error

* improving the previous commit with Ben's comments

* improve the styles of breadcrumb

* change the stylesheet related to status button

* refactoring css stylesheets of wp single card

* fixing the errors of PR, correct selector

* change some of stylesheets

* change the style naming

* resolve the error

* improving the previous commit with Ben's comments

* improve the styles of breadcrumb

* change the stylesheet related to status button

* refactoring css stylesheets of wp single card

* fixing the errors of PR, correct selector

* resolve the error on PR related to boards onboarding

* wp relation and list view style changes

* resolve the errors of previous commit

* fix error in selecting wp relation

* fix the errors of wp relations ruby tests

* change the stylesheets of autocompleter and wp calendar

* change the style of grid page

* Some improvements to the BEM styling

* Prefix draggable-autocomplete BEM block with op-

* Fix spec selector

* Fix spec selector

Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>
2021-07-15 14:08:58 +02:00
ulferts 1bdd2ab9ae safe automatic fixes by rubocop (#8994) 2021-02-11 16:02:18 +01:00
ulferts 05c9e3fca6 Feature/default dates for children (#8605)
* fix start_date expectation based on setting

* extract methods

* set dates of parent work package

* pass parent on form request

* have initial dates displayed correctly in wp create form
2020-08-31 14:54:20 +02:00
Oliver Günther 3b78c25588 Fix spec expecting for start date to be moved back 2020-07-21 14:57:03 +02:00
Oliver Günther 02a8a92540 Allow overriding scheduling in the table by mapping attributes 2020-07-21 10:27:39 +02:00
ulferts 4dc11b7240 handle switching from automatic to manual 2020-07-21 09:47:09 +02:00
ulferts fdcc89f810 allow freely setting the dates of manually scheduled child work packages 2020-07-21 09:47:08 +02:00