Content
View differences
Updated by Attila Dombi about 1 year ago
Attempted fix: https://github.com/opf/openproject/commit/5473e2d2dd17dd4a0a03e60a373d256432332ded ### Before filing a report
```text
1) Projects life cycle settings as admin with activated enterprise token allows managing definitions _Before you file a report, please ensure you are running the latest version of OpenProject and_
_have searched for similar bug reports._
Failure/Error: raise Capybara::ExpectationNotMet, "Expected #{names}, got #{found}" unless found == names ### Steps to reproduce
Capybara::ExpectationNotMet: _Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_
Expected ["Starting", "Imagining", "Processing", "Initiating"], got ["Initiating", "Starting", "Imagining", "Processing"] 1. Login as a user with permissions to manage members in project A
2. Go to the members page
3. Click on "Add new member"
4. Type the following string: "foo@example.org"
### What is the buggy behavior?
# ./spec/support/pages/admin/settings/project_life_cycle_step_definitions.rb:43:in 'block _Please describe the bug in Pages::Admin::Settings::ProjectLifeCycleStepDefinitions#expect_listed' as much detail as possible. Example:_
# /usr/local/bundle/gems/capybara-3.40.0/lib/capybara/node/base.rb:84:in 'Capybara::Node::Base#synchronize' * The button to invite a member did not work
* There was an error notification shown with the message "XYZ"
### What is the expected behavior?
# ./spec/support/pages/admin/settings/project_life_cycle_step_definitions.rb:40:in 'Pages::Admin::Settings::ProjectLifeCycleStepDefinitions#expect_listed' _Describe how the application should behave like. Example:_
# ./spec/features/admin/project_life_cycle_step_definitions_spec.rb:146:in 'block (3 levels) in <top (required)>' 1. The application should invite the new user with the selected role
2. An email should have been sent to that user
### Important note
# ./spec/support/capybara.rb:18:in 'block (2 levels) in <top (required)>' _Please note that unless you are a contributor to OpenProject, you can no longer edit this bug report after saving. You can still add new comments, new images and upload attachments though, but updating description or modifying fields will not be possible after saving. Please make sure that all necessary information and attachments are added, and the following attributes are set:_
# /usr/local/bundle/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in 'block (2 levels) in <top (required)>' ### **Logs**
# ./spec/support/shared/with_env.rb:60:in 'block (2 levels) _Are there errors in <top (required)>'
# ./spec/support/shared/with_direct_uploads.rb:206:in 'block (2 levels) the browser console? (_[_Click here for information on how to open your browser's console_](https://webmasters.stackexchange.com/a/77337)_) For a local installation: Are there relevant logs output by_ `_openproject logs_` _(packaged installation) (_[_click here for details_](https://docs.openproject.org/installation-and-operations/operation/monitoring/#show-logs)_) or in <top (required)>'
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in 'block a log/production.log or /var/log/openproject/ ? Please attach error output in RSpec::Retry#run' these log files if applicable_
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in 'RSpec::Retry#run' ### Screenshots and other files
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in 'RSpec::Core::Example::Procsy#run_with_retry' _If you have screenshots of the application's bug behavior or other relevant files, please drag them into this place or attach them using the "Files" section._
# ./spec/support/rspec_retry.rb:26:in 'block (2 levels) in <top (required)>' ### Environment information
# ./spec/support/cuprite_setup.rb:136:in 'block (2 levels) _Please check and fill out the following details to help us identify in <top (required)>' what versions and distributions of OpenProject the error occurs_
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in 'block in RSpec::Retry#run' **OpenProject installation type**
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in 'RSpec::Retry#run' * Hosted cloud edition
* Packaged installation
* What distribution?
* Docker All-in-one container
* Docker-compose installation
* Other (please specify)
**OpenProject version**
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in 'RSpec::Core::Example::Procsy#run_with_retry' _If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5_
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in 'block (2 levels) in RSpec::Retry.setup' **Browser**
Finished in 13 minutes 30 seconds (files took 39.01 seconds to load) * [ ] Chrome
* [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
2619 examples, 1 failure, 15 pending **Operating System**
Failed examples: * [ ] Windows
* [ ] Mac OS X
* [ ] Mobile iOS
* [ ] Mobile Android
* [ ] Linux (please specify distro)
* [ ] Chrome OS
* [ ] Other (please specify)
rspec ./spec/features/admin/project_life_cycle_step_definitions_spec.rb:88 # Projects life cycle settings as admin with activated enterprise token allows managing definitions
``` **Language**
_Please specify the browser language and the language of the OpenProject user for which the bug occurred._
```text
1) Projects life cycle settings as admin with activated enterprise token allows managing definitions
_have searched for similar bug reports._
Failure/Error: raise Capybara::ExpectationNotMet, "Expected #{names}, got #{found}" unless found == names
Capybara::ExpectationNotMet:
Expected ["Starting", "Imagining", "Processing", "Initiating"], got ["Initiating", "Starting", "Imagining", "Processing"]
2. Go to the members page
3. Click on "Add new member"
4. Type the following string: "foo@example.org"
### What is the buggy behavior?
# ./spec/support/pages/admin/settings/project_life_cycle_step_definitions.rb:43:in 'block
# /usr/local/bundle/gems/capybara-3.40.0/lib/capybara/node/base.rb:84:in 'Capybara::Node::Base#synchronize'
* There was an error notification shown with the message "XYZ"
### What is the expected behavior?
# ./spec/support/pages/admin/settings/project_life_cycle_step_definitions.rb:40:in 'Pages::Admin::Settings::ProjectLifeCycleStepDefinitions#expect_listed'
# ./spec/features/admin/project_life_cycle_step_definitions_spec.rb:146:in 'block (3 levels) in <top (required)>'
2. An email should have been sent to that user
### Important note
# ./spec/support/capybara.rb:18:in 'block (2 levels) in <top (required)>'
# /usr/local/bundle/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in 'block (2 levels) in <top (required)>'
# ./spec/support/shared/with_env.rb:60:in 'block (2 levels)
# ./spec/support/shared/with_direct_uploads.rb:206:in 'block (2 levels)
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in 'block
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in 'RSpec::Retry#run'
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in 'RSpec::Core::Example::Procsy#run_with_retry'
# ./spec/support/rspec_retry.rb:26:in 'block (2 levels) in <top (required)>'
# ./spec/support/cuprite_setup.rb:136:in 'block (2 levels)
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in 'block in RSpec::Retry#run'
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in 'RSpec::Retry#run'
* Packaged installation
* What distribution?
* Docker All-in-one container
* Docker-compose installation
* Other (please specify)
**OpenProject version**
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in 'RSpec::Core::Example::Procsy#run_with_retry'
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in 'block (2 levels) in RSpec::Retry.setup'
Finished in 13 minutes 30 seconds (files took 39.01 seconds to load)
* [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
2619 examples, 1 failure, 15 pending
Failed examples:
* [ ] Mac OS X
* [ ] Mobile iOS
* [ ] Mobile Android
* [ ] Linux (please specify distro)
* [ ] Chrome OS
* [ ] Other (please specify)
rspec ./spec/features/admin/project_life_cycle_step_definitions_spec.rb:88 # Projects life cycle settings as admin with activated enterprise token allows managing definitions
```
_Please specify the browser language and the language of the OpenProject user for which the bug occurred._