112 Commits

Author SHA1 Message Date
Mir Bhatia 18ae3b1ca6 Update specs to use new field name 2026-04-01 17:08:54 +02:00
Alexander Brandon Coles 83571750cb Remove unused Components::AttributeHelpTextModal 2025-07-11 14:24:13 +01:00
Klaus Zanders 7399522501 fix running timer specs 2025-07-09 10:41:22 +02:00
Klaus Zanders 4688953e8a more feature updates 2025-07-09 10:41:16 +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
Christophe Bliard 083f939fe3 Fix flaky spec
spec is ./modules/reporting/spec/features/update_entries_spec.rb:72
job run is https://github.com/opf/openproject/actions/runs/14646323170/job/41135997810

It was failing when submitting the time logging modal before the work
package was loaded. As it was not loaded, it was empty, and as it was
empty, it was displaying an error "Work package is invalid" and the time
was not updated.

As the time was not updated, the spec was failing looking for "2.00
hours" (the new value) but only getting "5.00 hours" (the old value).

Fix is to wait for the autocompleter to be fully loaded before
proceeding with submit. This is done by waiting for `ng-spinner-loader`
to not be visible anymore.
2025-04-25 11:01:18 +02:00
Oliver Günther 3eb0e9feba Try to fix time entry dialog 2025-02-28 14:04:08 +01:00
Klaus Zanders 02ef968cb1 add tests for new validation 2025-02-03 17:56:30 +01:00
Oliver Günther 53aab51fd2 Don't fire on same value 2025-01-21 13:40:42 +01:00
Oliver Günther c090738f7b Allow WP time entries component to be used in primer 2025-01-21 11:50:21 +01:00
Klaus Zanders 27fab51a6a fix query selector for the autocompleters 2025-01-16 11:19:06 +01:00
Klaus Zanders 84cc980ecd fix tests for work package field in time entry dialog 2025-01-16 10:54:28 +01:00
Klaus Zanders 62b550621d add tests for behavior within the modal 2025-01-15 16:41:21 +01:00
Klaus Zanders fbdbecfa12 fix specs 2025-01-15 10:58:00 +01:00
Klaus Zanders 34ae4bb74c fix tests for the my page 2025-01-15 10:09:06 +01:00
Klaus Zanders 4c6f0e9fee add the delete button for ongoing time entries
Please enter the commit message for your changes. Lines starting
2025-01-15 10:09:04 +01:00
Klaus Zanders bcf9c87af5 fix more tests 2025-01-15 10:09:03 +01:00
Klaus Zanders ac9faad88a attempt to fix tests 2025-01-15 10:09:02 +01:00
Klaus Zanders 2221965166 improve test for WP input being disabled 2025-01-15 10:09:01 +01:00
Klaus Zanders 3b3ee5110a fix first batch of tests 2025-01-15 10:09:01 +01:00
Klaus Zanders 2f5de8a5f7 fix specs 2025-01-15 10:08:58 +01:00
Oliver Günther f791d33b72 Replace specs 2025-01-14 10:20:35 +01:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Dombi Attila 738964885d Add AttributeHelperText specs for the Overview Sidebar 2024-04-24 16:25:05 +03: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
Henriette Darge 67dcba6fbe Merge button styles "alt-highlight" and "highlight" together in one "primary" style 2024-03-08 14:10:30 +01: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
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Klaus Zanders 9cb5fd4de3 Switch attribute help text to check permission instead of admin 2023-11-06 16:25:32 +01:00
Oliver Günther 92259181ce Adapt specs to use introduced helpers 2023-09-13 09:02:42 +02:00
Aaron Contreras a3c62135ed Switch admin/attribute_help_texts_spec to cuprite 2023-06-28 05:18:54 -05:00
Christophe Bliard 4c2a9d0aa8 Enable RSpec zero monkey patching mode
The plan for RSpec 4.0 is to disable monkey patching.

See https://github.com/rspec/rspec-core/blob/main/features/configuration/zero_monkey_patching_mode.feature for details.
2023-05-31 19:22:29 +02: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
Dombi Attila 933bf263c6 Fix datepicker opening behind modals 2023-02-08 21:23:44 +02:00
Dombi Attila 2c885576cc Update time_logging_modal helper to find hidden field 2023-01-25 18:47:55 +02:00
Christophe Bliard 85b3258a29 Autocorrect with some rubocop cops
RSpec/Rails/InferredSpecType and Style/RedundantConstantBase

rubocop --autocorrect-all --only RSpec/Rails/InferredSpecType,Style/RedundantConstantBase spec modules/*/spec
2023-01-13 14:28:59 +01:00
Oliver Günther f1d590fc6e [45742] Fix missing injection in project time entries
https://community.openproject.com/wp/45742
2023-01-12 07:42:50 +01:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard e3f4a6b582 Include Capybara::RSpecMatchers where DSL is included
This is needed to make these two statements equivalent:

    expect(page).not_to have_xpath('a')
    expect(page).to have_no_xpath('a')

So that the both matchers return early on element absence, instead of
timing out.

This is the continuation of e85b47979a.
2022-11-14 11:52:52 +01:00
Eric Schubert c8f1e16005 [#43684] migrated op-modal to spot-modal (#11172)
* [#43684] migrated op-modal to spot-modal

- https://community.openproject.org/work_packages/43684
- amended styles
- removed "modal--title"
- removed header component
- removed closing icon
- fixed backdrop click
- removed jquery from modal service

* [#43684] removed unused styling

- fixed some inconsitencies
- readded removed icon
- removed listener on close button

* [#43684] combined spot-action-bar

- used spot-action-bar in combination with spot-modal--footer
- fixed some styling in action bar

* [#43684] replaced more op-modal

- moved spec selectors to spot-modal
- replaced found op-modal in html templates

* [#43684] add no margin to old buttons in new dialogs

- added mobile modal behavior
- fixed some feature spec selectors

* [#43684] added modal close on mobile resolutions

* [#43684] fixed PR issues

- removed old css classes from html
- fixed feature spec click
- readded tour trigger on modal cancel

* when clicking outside the modal it will be closed instaed of clicking on a close button

* exclude _center class from spot-modal sass file itself and add it to the component style sheet

* Words should be break in any case like when there is no space there

* remove unnecessary classes that never used like _fullscreen and _cente, remove _limited-height class to make all the modal look the same

Co-authored-by: bsatarnejad <b.satarnejad@gmail.com>
Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>
2022-08-29 10:53:41 +00:00
Oliver Günther d37492a1c4 Ensure user field is not selecatable with only log_own_time permissions 2022-07-21 11:39:05 +02:00
Oliver Günther f299508050 Hide user field in my page spent time 2022-07-21 10:38:52 +02:00
Henriette Darge 70016a2417 Adapt autocomplete helper since ui-autocomplete does not exist any more and the project autocomplete HTML structure has changed 2022-06-24 10:26:10 +02:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Eric Schubert bf67c648e2 [#39772] Replace query select component
- https://community.openproject.org/work_packages/39772
- added op-sidemenu to wp-query-select
- replaced jquery ui in wp-query-select
- added css padding override for items with icon in op-sidemenu
- changed databinding to observables
- Rename "collapsible menu" to "searchable menu" and let it handle only the things needed for the searching.
  - Apply correct classes for query-select-menu so that it is scrollable again
  - All other (obsolete) parts have been removed.
- Adapt test to new styling of reports sidebar
2021-11-16 10:21:37 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
Oliver Günther e363d2f2fd Remove accessible-by-keyboard a11y component (#9331)
* Replace accessible-by-keyboard

* Replace messed up inplace styles with work-package-comment bem block

The styles are not used anymore except for work package comments anyway

* Replace split view icons with buttons

* Make back-button its own bem block

* Replace button in hide-section component

* Replace activity buttons

* Replace notification icon

* Replace collapsible-section

* Replace config-menu

* Make attribute help text trigger a button

* Ensure all buttons are role=button

* Replace inplace save controls

* Replace relations buttons

* Replace relation toggle button

* Replace relation row buttons

* Replace breadcrumb parent

* Replace activities toggler

* Remove accessible-by-keyboard component

* Fix button role to button type

* Fix indent

* Bemmify media query

* Fix specs
2021-05-31 14:18:14 +00:00