mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 06:28:03 +08:00
5c05361587
In tests we could attempt to click the button before it was enabled and it could also not be visible on screen. This commits attempts to solve both problems. It should solve this failure: ``` Failures: 1) Admin Customize Form Templates when visiting the page to create a new form template should allow admin to create a new form template Failure/Error: find(".form-templates__table tbody tr td", text: name).present? Capybara::ElementNotFound: Unable to find css ".form-templates__table tbody tr td" [Screenshot Image]: /__w/discourse/discourse/tmp/capybara/failures_r_spec_example_groups_admin_customize_form_templates_when_visiting_the_page_to_create_a_new_form_template_should_allow_admin_to_create_a_new_form_template_911.png ~~~~~~~ JS LOGS ~~~~~~~ http://localhost:31339/favicon.ico - Failed to load resource: the server responded with a status of 404 (Not Found) ~~~~~ END JS LOGS ~~~~~ # ./vendor/bundle/ruby/3.2.0/gems/capybara-3.39.1/lib/capybara/node/finders.rb:312:in `block in synced_resolve' # ./vendor/bundle/ruby/3.2.0/gems/capybara-3.39.1/lib/capybara/node/base.rb:84:in `synchronize' # ./vendor/bundle/ruby/3.2.0/gems/capybara-3.39.1/lib/capybara/node/finders.rb:301:in `synced_resolve' # ./vendor/bundle/ruby/3.2.0/gems/capybara-3.39.1/lib/capybara/node/finders.rb:60:in `find' # ./vendor/bundle/ruby/3.2.0/gems/capybara-3.39.1/lib/capybara/session.rb:773:in `find' # ./vendor/bundle/ruby/3.2.0/gems/capybara-3.39.1/lib/capybara/dsl.rb:52:in `call' # ./vendor/bundle/ruby/3.2.0/gems/capybara-3.39.1/lib/capybara/dsl.rb:52:in `find' # ./spec/system/page_objects/pages/form_template.rb:21:in `has_form_template?' # ./spec/system/admin_customize_form_templates_spec.rb:71:in `block (3 levels) in <main>' # ./spec/rails_helper.rb:381:in `block (3 levels) in <top (required)>' # ./vendor/bundle/ruby/3.2.0/gems/timeout-0.3.2/lib/timeout.rb:189:in `block in timeout' # ./vendor/bundle/ruby/3.2.0/gems/timeout-0.3.2/lib/timeout.rb:36:in `block in catch' # ./vendor/bundle/ruby/3.2.0/gems/timeout-0.3.2/lib/timeout.rb:36:in `catch' # ./vendor/bundle/ruby/3.2.0/gems/timeout-0.3.2/lib/timeout.rb:36:in `catch' # ./vendor/bundle/ruby/3.2.0/gems/timeout-0.3.2/lib/timeout.rb:198:in `timeout' # ./spec/rails_helper.rb:377:in `block (2 levels) in <top (required)>' # ./spec/rails_helper.rb:369:in `block (2 levels) in <top (required)>' # ./vendor/bundle/ruby/3.2.0/gems/webmock-3.18.1/lib/webmock/rspec.rb:37:in `block (2 levels) in <top (required)>' ``` |
||
---|---|---|
.. | ||
composer | ||
emojis | ||
page_objects | ||
user_page | ||
admin_customize_form_templates_spec.rb | ||
admin_customize_themes_spec.rb | ||
bookmarks_spec.rb | ||
category_edit_spec.rb | ||
custom_sidebar_sections_spec.rb | ||
discovery_breadcrumb_navigation_spec.rb | ||
ember_deprecation_test.rb | ||
fast_edit_spec.rb | ||
filtering_topics_spec.rb | ||
hashtag_autocomplete_spec.rb | ||
search_spec.rb | ||
tag_notification_level_spec.rb | ||
tag_synonyms_spec.rb | ||
user_preferences_interface_spec.rb | ||
user_preferences_navigation_spec.rb | ||
user_selector_spec.rb | ||
viewing_category_spec.rb | ||
viewing_sidebar_mobile_spec.rb | ||
viewing_sidebar_preferences_spec.rb | ||
viewing_sidebar_spec.rb |