Acabo de actualizar cosas de discourse-plugin-skeleton (después de que todas las pruebas pasaran localmente, pero luego algún cambio hizo que fallaran algunas pruebas de front-end). Ahora estoy viendo esto:
bin/turbo_rspec --verbose --format documentation plugins/discourse-pfaffmanager/spec/system
shell: bash --noprofile --norc -e -o pipefail {0}
env:
JS_PKG_MANAGER_NULL_VALUE: none
DISCOURSE_HOSTNAME: www.example.com
RUBY_GLOBAL_METHOD_CACHE_SIZE: 131072
RAILS_ENV: test
PGUSER: discourse
PGPASSWORD: discourse
PLUGIN_NAME: discourse-pfaffmanager
CHEAP_SOURCE_MAPS: 1
MINIO_RUNNER_LOG_LEVEL: DEBUG
MINIO_RUNNER_INSTALL_DIR: /home/discourse/.minio_runner
USES_PARALLEL_DATABASES: true
PARALLEL_TEST_PROCESSORS: 1
LOAD_PLUGINS: 1
CAPYBARA_DEFAULT_MAX_WAIT_TIME: 10
Run turbo_rspec
VERBOSE
[multisite] Run RSpec
[1] Run RSpec
Verbose turbo_spec output
Setting up parallel test mode - starting Redis 1 on port 10001
[multisite] DONE (1/2) 10.36s
[1] (#2990) Core features behaves like having working core features User profile with a logged in user displays a user’s profile
[1] (#2990) Core features behaves like having working core features User profile with a logged in user displays the user’s own profile
[1] (#2990) Core features behaves like having working core features User profile with an anonymous user displays a user’s profile
[1] (#2990) Core features behaves like having working core features Likes likes a post (FAILED - 1)
[1] (#2990) Core features behaves like having working core features Search with a logged in user searches using the quick search
[1] (#2990) Core features behaves like having working core features Search with a logged in user searches using the full page search
[1] (#2990) Core features behaves like having working core features Search with an anonymous user searches using the quick search
[1] (#2990) Core features behaves like having working core features Search with an anonymous user searches using the full page search
[1] (#2990) Core features behaves like having working core features Login logs in
[1] (#2990) Core features behaves like having working core features Login displays a login button in the header
[1] (#2990) Core features behaves like having working core features Topics with an anonymous user lists topics for a category
[1] (#2990) Core features behaves like having working core features Topics with an anonymous user lists latest topics
[1] (#2990) Core features behaves like having working core features Topics with an anonymous user displays a specific topic
[1] (#2990) Core features behaves like having working core features Topics with a logged in user displays a specific topic (FAILED - 2)
[1] (#2990) Core features behaves like having working core features Topics with a logged in user replies in a topic (FAILED - 3)
[1] (#2990) Core features behaves like having working core features Topics with a logged in user creates a new topic (FAILED - 4)
[1] (#2990) Core features behaves like having working core features Topics with a logged in user lists topics for a category (FAILED - 5)
[1] (#2990) Core features behaves like having working core features Topics with a logged in user lists latest topics (FAILED - 6)
Failed to load resource: net::ERR_CONNECTION_REFUSED
Failed to load resource: net::ERR_CONNECTION_REFUSED
~~~~~ END JS LOGS ~~~~
Shared Example Group: "having working core features" called from ./plugins/discourse-pfaffmanager/spec/system/core_features_spec.rb:14
# ./spec/support/shared_examples/core_features.rb:69:in `block (4 levels) in <main>'
# ./spec/rails_helper.rb:719:in `block (3 levels) in <top (required)>'
# ./vendor/bundle/ruby/3.3.0/gems/timeout-0.5.0/lib/timeout.rb:222:in `block in timeout'
# ./vendor/bundle/ruby/3.3.0/gems/timeout-0.5.0/lib/timeout.rb:229:in `timeout'
# ./spec/rails_helper.rb:709:in `block (2 levels) in <top (required)>'
# ./spec/rails_helper.rb:666:in `block (2 levels) in <top (required)>'
# ./vendor/bundle/ruby/3.3.0/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
6) Core features behaves like having working core features Topics with a logged in user lists latest topics
Failure/Error: expect(page).to have_css(".topic-list-item", count: 4)
expected to find css ".topic-list-item" 4 times but there were no matches
[Screenshot Image]: /__w/discourse-pfaffmanager/discourse-pfaffmanager/tmp/capybara/failures_r_spec_example_groups_core_features_behaves_like_having_working_core_features_topics_with_a_logged_in_user_lists_latest_topics_269.png
~~~~~~~ JS LOGS ~~~~~~~
DEBUG: -------------------------------
DEBUG: Ember : 6.6.0
DEBUG: -------------------------------
ℹ️ Discourse v2026.2.0-latest — https://github.com/discourse/discourse/commits/f7cec86997 — Ember v6.6.0
DEBUG: For more advanced debugging, install the Ember Inspector from https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi
Failed to load resource: net::ERR_CONNECTION_REFUSED
~~~~~ END JS LOGS ~~~~~
Shared Example Group: "having working core features" called from ./plugins/discourse-pfaffmanager/spec/system/core_features_spec.rb:14
# ./spec/support/shared_examples/core_features.rb:64:in `block (4 levels) in <main>'
# ./spec/rails_helper.rb:719:in `block (3 levels) in <top (required)>'
# ./vendor/bundle/ruby/3.3.0/gems/timeout-0.5.0/lib/timeout.rb:222:in `block in timeout'
# ./vendor/bundle/ruby/3.3.0/gems/timeout-0.5.0/lib/timeout.rb:229:in `timeout'
# ./spec/rails_helper.rb:709:in `block (2 levels) in <top (required)>'
# ./spec/rails_helper.rb:666:in `block (2 levels) in <top (required)>'
# ./vendor/bundle/ruby/3.3.0/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
Finished in 2 minutes 14.4 seconds (files took 0 seconds to load)
18 examples, 6 failures
Failed examples:
rspec ./plugins/discourse-pfaffmanager/spec/system/core_features_spec.rb:14 # Core features behaves like having working core features Likes likes a post
rspec ./plugins/discourse-pfaffmanager/spec/system/core_features_spec.rb:14 # Core features behaves like having working core features Topics with a logged in user displays a specific topic
rspec ./plugins/discourse-pfaffmanager/spec/system/core_features_spec.rb:14 # Core features behaves like having working core features Topics with a logged in user replies in a topic
rspec ./plugins/discourse-pfaffmanager/spec/system/core_features_spec.rb:14 # Core features behaves like having working core features Topics with a logged in user creates a new topic
rspec ./plugins/discourse-pfaffmanager/spec/system/core_features_spec.rb:14 # Core features behaves like having working core features Topics with a logged in user lists topics for a category
rspec ./plugins/discourse-pfaffmanager/spec/system/core_features_spec.rb:14 # Core features behaves like having working core features Topics with a logged in user lists latest topics
Error: Process completed with exit code 1.
No veo cómo mi plugin podría estar afectando esto… pero ejecutar bin/rake autospec en el repositorio de discourse parece encontrar muchos fallos.
Hay documentación aquí: New core features system specs in plugins and themes – ¿quizás debería leerla?