Skip to content

Instantly share code, notes, and snippets.

@ChasManRors
Created February 8, 2018 22:19
Show Gist options
  • Save ChasManRors/c923f274eba687ba1e903f0772868d8d to your computer and use it in GitHub Desktop.
Save ChasManRors/c923f274eba687ba1e903f0772868d8d to your computer and use it in GitHub Desktop.
* campaigns_spec.rb:81 Not the one I am looking for but close campaigns_spec.rb[1:7:1:1:1:2]
Thu Feb 8 16:06:44 2018
#+BEGIN_EXAMPLE
https://travis-ci.com/RBM-Technologies/vmm/jobs/109664233#L1583
Failures:
1) campaigns page create with valid params should create a new campaign
Failure/Error: page.evaluate_script('jQuery.active').zero?
Capybara::Poltergeist::JavascriptError:
One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).
ReferenceError: Can't find variable: jQuery
ReferenceError: Can't find variable: jQuery
at undefined:1
at :1
at :1
# ./spec/support/wait_for_ajax.rb:26:in `finished_all_jquery_requests?'
# ./spec/support/wait_for_ajax.rb:22:in `finished_all_ajax_requests?'
# ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
# ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
# ./spec/support/wait_for_ajax.rb:38:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:76:in `block (2 levels) in <top (required)>'
Finished in 11 minutes 25 seconds (files took 13.89 seconds to load)
1399 examples, 1 failure, 12 pending
Failed examples:
rspec ./spec/features/campaigns_spec.rb:81 # campaigns page create with valid params should create a new campaign
Randomized with seed 10425
#+END_EXAMPLE
* filters_spec.rb:118 Not the one I am looking for
Thu Feb 8 16:08:36 2018
Failures:
1) location filters edit filter when updating the description shows the new description in the filters list
Failure/Error: expect(page).to have_content('Description for the filter')
expected to find text "Description for the filter" in "Locations Campaigns Fixtures Contents Comments Reference Surveys Reports Tools Announcements Campaign Planning Calculator New filter 6 total LocationFilters Filter Name Filter Containing Location ID: Existing Filters Name Scenario Role Restrictions Used in Description Filter #256 Filter #257 Filter #258 Filter #259 Filter #260 Filter #261 Powered by Merchandising Cloud – © 2018 One Door. All rights reserved."
# ./spec/features/filters_spec.rb:120:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:76:in `block (2 levels) in <top (required)>'
Deprecation Warnings:
Using `should` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` with `config.expect_with(:rspec) { |c| c.syntax = :should }` instead. Called from /home/travis/build/RBM-Technologies/vmm/spec/features/locations/store_explorer_spec.rb:65:in `block (4 levels) in <top (required)>'.
If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.
1 deprecation warning total
Finished in 15 minutes 6 seconds (files took 14.87 seconds to load)
795 examples, 1 failure, 14 pending
Failed examples:
rspec ./spec/features/filters_spec.rb:118 # location filters edit filter when updating the description shows the new description in the filters list
Randomized with seed 53500
Coverage report generated for RSpec to /home/travis/build/RBM-Technologies/vmm/coverage. 15754 / 76806 LOC (20.51%) covered.
* fixtures_spec.rb:27 & fixtures_spec.rb:113 Not the ones I am looking for
Failures:
1) fixtures page index search using the basic search input displays only one fixture
Failure/Error: instance_variable_set("@#{variable}", constant.find(value.to_i))
ActiveRecord::StatementInvalid:
PG::TRDeadlockDetected: ERROR: deadlock detected
DETAIL: Process 6730 waits for AccessShareLock on relation 17036 of database 16387; blocked by process 6586.
Process 6586 waits for AccessExclusiveLock on relation 17026 of database 16387; blocked by process 6730.
HINT: See server log for query details.
: SELECT DISTINCT "categories"."id" FROM "categories" LEFT OUTER JOIN "categories_regions" ON "categories_regions"."category_id" = "categories"."id" LEFT OUTER JOIN "regions" ON "regions"."id" = "categories_regions"."region_id" AND "regions"."deleted_at" IS NULL LEFT OUTER JOIN "categories_roles" ON "categories_roles"."category_id" = "categories"."id" LEFT OUTER JOIN "roles" ON "roles"."id" = "categories_roles"."role_id" WHERE "categories"."deleted_at" IS NULL AND "categories"."id" = $1 AND ("regions"."id" IN (341) OR "regions"."id" IS NULL) AND (roles.id IS NULL OR roles.id IN (434)) LIMIT 1
# ./app/controllers/application_controller.rb:469:in `block in load_model_params'
# ./app/controllers/application_controller.rb:453:in `load_model_params'
# ./app/controllers/application_controller.rb:559:in `track_permissons'
# ./lib/error_handler.rb:2:in `handle_errors'
# ------------------
# --- Caused by: ---
# PG::TRDeadlockDetected:
# ERROR: deadlock detected
# DETAIL: Process 6730 waits for AccessShareLock on relation 17036 of database 16387; blocked by process 6586.
# Process 6586 waits for AccessExclusiveLock on relation 17026 of database 16387; blocked by process 6730.
# HINT: See server log for query details.
# ./app/controllers/application_controller.rb:469:in `block in load_model_params'
2) fixtures page new fixture type when submitting the form correctly renders the success flash message
Failure/Error: expect(page).to have_content('FixtureType was successfully created')
expected to find text "FixtureType was successfully created" in "Locations Campaigns Fixtures Contents Comments Reference Surveys Reports Tools Announcements Campaign Planning Calculator View Fixtures New Fixture Type Recover Fixture Types Switch Out Fixtures Fixture type content associations Fixture type could not be created Close Category can't be blank Close New Fixture Type Details Name Category Thumbnail Image Floorplan Icon Rasterized SWF Icon Replace Rasterized SWF Icon : Permitted operations Roles Hide Allow Add Allow Move Allow Delete Allow Edit Allow Rotate Only Allow Future Fixture Editing Allow Editing Visual Priority RBM Admin Cancel Powered by Merchandising Cloud – © 2018 One Door. All rights reserved."
# ./spec/features/fixtures_spec.rb:114:in `block (4 levels) in <top (required)>'
Deprecation Warnings:
Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /home/travis/build/RBM-Technologies/vmm/spec/models/comment_display_setting_spec.rb:42:in `block (5 levels) in <top (required)>'.
If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.
1 deprecation warning total
Finished in 14 minutes 5 seconds (files took 13.75 seconds to load)
1231 examples, 2 failures, 11 pending
Failed examples:
rspec ./spec/features/fixtures_spec.rb:27 # fixtures page index search using the basic search input displays only one fixture
rspec ./spec/features/fixtures_spec.rb:113 # fixtures page new fixture type when submitting the form correctly renders the success flash message
Randomized with seed 38753
* locations_spec.rb:217 & others Not the ones I am looking for
Failures:
1) locations page show page with a launched questionnaire with a numeric question can answer the question
Failure/Error: expect(page).to have_content 'Thank you for your response'
expected to find text "Thank you for your response" in "Locations Campaigns Fixtures Contents Comments Reference Surveys Reports Tools Announcements Campaign Planning Calculator Edit Location View Changes Map Issues for This Location Delete Location Edit Floorplan Image Gallery Edit Album Questionnaires All Content Orders Switch to location: Main Street / Suite 6 / Boston / MA / cid237 Current planograms name1035 This store is currently: 100% compliant View Planograms CID : Governance Approved Main Street / Suite 6 / Boston / MA / cid237 Location #140 Tel: 978-123-4567 Details Questionnaire #14 What is the meaning of life? Answer must be a number Store Notes Store Details View All Store Details Address: Main Street, Suite 6, Boston, MA 02142 Phone: 978-123-4567 Store Resources Powered by Merchandising Cloud – © 2018 One Door. All rights reserved."
# ./spec/features/locations/locations_spec.rb:221:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:76:in `block (2 levels) in <top (required)>'
2) Home with more than one location does not show the current campaign
Got 0 failures and 2 other errors:
2.1) Failure/Error: before { visit '/magellan' }
Capybara::Poltergeist::JavascriptError:
One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).
[i18n] Cannot load i18n! [object Object]
[i18n] Cannot load i18n! [object Object]
at :0 in console.error
# ./spec/features/magellan/home_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:76:in `block (2 levels) in <top (required)>'
2.2) Failure/Error: if regions.empty?
ActiveRecord::StatementInvalid:
PG::TRDeadlockDetected: ERROR: deadlock detected
DETAIL: Process 6723 waits for AccessShareLock on relation 18261 of database 16387; blocked by process 6577.
Process 6577 waits for AccessExclusiveLock on relation 18269 of database 16387; blocked by process 6723.
HINT: See server log for query details.
: SELECT 1 AS one FROM "regions" LEFT OUTER JOIN "region_translations" ON "region_translations"."region_id" = "regions"."id" AND "region_translations"."deleted_at" IS NULL INNER JOIN "regions_users" ON "regions"."id" = "regions_users"."region_id" WHERE "regions"."deleted_at" IS NULL AND "regions_users"."user_id" = $1 LIMIT 1
# ./app/models/concerns/has_regions.rb:13:in `region_accessible'
# ./app/models/questionnaire.rb:66:in `accessible'
# ./app/serializers/api/v1/location_serializer.rb:164:in `questionnaires'
# ------------------
# --- Caused by: ---
# PG::TRDeadlockDetected:
# ERROR: deadlock detected
# DETAIL: Process 6723 waits for AccessShareLock on relation 18261 of database 16387; blocked by process 6577.
# Process 6577 waits for AccessExclusiveLock on relation 18269 of database 16387; blocked by process 6723.
# HINT: See server log for query details.
# ./app/models/concerns/has_regions.rb:13:in `region_accessible'
3) templates page should have all columns in the templates list table after click
Failure/Error: click_on(_("In-Store Date"))
Capybara::ElementNotFound:
Unable to find link or button "In-Store Date"
# ./spec/features/templates_spec.rb:20:in `block (2 levels) in <top (required)>'
Finished in 11 minutes 3 seconds (files took 13.37 seconds to load)
701 examples, 3 failures, 3 pending
Failed examples:
rspec ./spec/features/locations/locations_spec.rb:217 # locations page show page with a launched questionnaire with a numeric question can answer the question
rspec ./spec/features/magellan/home_spec.rb:36 # Home with more than one location does not show the current campaign
rspec ./spec/features/templates_spec.rb:18 # templates page should have all columns in the templates list table after click
Randomized with seed 37855
* magellan/home_spec.rb:36 & others Not the ones I am looking for
Failures:
1) locations page show page with a launched questionnaire with a numeric question can answer the question
Failure/Error: expect(page).to have_content 'Thank you for your response'
expected to find text "Thank you for your response" in "Locations Campaigns Fixtures Contents Comments Reference Surveys Reports Tools Announcements Campaign Planning Calculator Edit Location View Changes Map Issues for This Location Delete Location Edit Floorplan Image Gallery Edit Album Questionnaires All Content Orders Switch to location: Main Street / Suite 6 / Boston / MA / cid237 Current planograms name1035 This store is currently: 100% compliant View Planograms CID : Governance Approved Main Street / Suite 6 / Boston / MA / cid237 Location #140 Tel: 978-123-4567 Details Questionnaire #14 What is the meaning of life? Answer must be a number Store Notes Store Details View All Store Details Address: Main Street, Suite 6, Boston, MA 02142 Phone: 978-123-4567 Store Resources Powered by Merchandising Cloud – © 2018 One Door. All rights reserved."
# ./spec/features/locations/locations_spec.rb:221:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:76:in `block (2 levels) in <top (required)>'
2) Home with more than one location does not show the current campaign
Got 0 failures and 2 other errors:
2.1) Failure/Error: before { visit '/magellan' }
Capybara::Poltergeist::JavascriptError:
One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).
[i18n] Cannot load i18n! [object Object]
[i18n] Cannot load i18n! [object Object]
at :0 in console.error
# ./spec/features/magellan/home_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:76:in `block (2 levels) in <top (required)>'
2.2) Failure/Error: if regions.empty?
ActiveRecord::StatementInvalid:
PG::TRDeadlockDetected: ERROR: deadlock detected
DETAIL: Process 6723 waits for AccessShareLock on relation 18261 of database 16387; blocked by process 6577.
Process 6577 waits for AccessExclusiveLock on relation 18269 of database 16387; blocked by process 6723.
HINT: See server log for query details.
: SELECT 1 AS one FROM "regions" LEFT OUTER JOIN "region_translations" ON "region_translations"."region_id" = "regions"."id" AND "region_translations"."deleted_at" IS NULL INNER JOIN "regions_users" ON "regions"."id" = "regions_users"."region_id" WHERE "regions"."deleted_at" IS NULL AND "regions_users"."user_id" = $1 LIMIT 1
# ./app/models/concerns/has_regions.rb:13:in `region_accessible'
# ./app/models/questionnaire.rb:66:in `accessible'
# ./app/serializers/api/v1/location_serializer.rb:164:in `questionnaires'
# ------------------
# --- Caused by: ---
# PG::TRDeadlockDetected:
# ERROR: deadlock detected
# DETAIL: Process 6723 waits for AccessShareLock on relation 18261 of database 16387; blocked by process 6577.
# Process 6577 waits for AccessExclusiveLock on relation 18269 of database 16387; blocked by process 6723.
# HINT: See server log for query details.
# ./app/models/concerns/has_regions.rb:13:in `region_accessible'
3) templates page should have all columns in the templates list table after click
Failure/Error: click_on(_("In-Store Date"))
Capybara::ElementNotFound:
Unable to find link or button "In-Store Date"
# ./spec/features/templates_spec.rb:20:in `block (2 levels) in <top (required)>'
Finished in 11 minutes 3 seconds (files took 13.37 seconds to load)
701 examples, 3 failures, 3 pending
Failed examples:
rspec ./spec/features/locations/locations_spec.rb:217 # locations page show page with a launched questionnaire with a numeric question can answer the question
rspec ./spec/features/magellan/home_spec.rb:36 # Home with more than one location does not show the current campaign
rspec ./spec/features/templates_spec.rb:18 # templates page should have all columns in the templates list table after click
Randomized with seed 37855
* fixtures_spec.rb:27 & fixtures_spec.rb:35 Not the ones I am looking for
Failures:
1) fixtures page index search using the basic search input displays only one fixture
Failure/Error: base = self.roots.with_translations('en').find_by name: names.first
ActiveRecord::StatementInvalid:
PG::TRDeadlockDetected: ERROR: deadlock detected
DETAIL: Process 6609 waits for AccessShareLock on relation 17055 of database 16387; blocked by process 6468.
Process 6468 waits for AccessExclusiveLock on relation 17026 of database 16387; blocked by process 6609.
HINT: See server log for query details.
: SELECT "categories".* FROM "categories" INNER JOIN "category_translations" ON "category_translations"."category_id" = "categories"."id" AND "category_translations"."deleted_at" IS NULL WHERE "categories"."deleted_at" IS NULL AND "categories"."ancestry" IS NULL AND "category_translations"."deleted_at" IS NULL AND "category_translations"."locale" = $1 AND "category_translations"."name" = 'fixture' LIMIT 1
# ./lib/rbm/acts/rbm-acts_as_hierarchy.rb:169:in `search_hierarchy'
# ./lib/rbm/acts/rbm-acts_as_hierarchy.rb:151:in `method_missing'
# ./app/models/fixture_type.rb:606:in `text_search'
# ./app/models/fixture_type.rb:69:in `block in <class:FixtureType>'
# ./app/controllers/zebra/fixture_types_controller.rb:88:in `get_fixture_types'
# ./app/controllers/zebra/fixture_types_controller.rb:14:in `index'
# ./app/controllers/application_controller.rb:559:in `track_permissons'
# ./lib/error_handler.rb:2:in `handle_errors'
# ------------------
# --- Caused by: ---
# PG::TRDeadlockDetected:
# ERROR: deadlock detected
# DETAIL: Process 6609 waits for AccessShareLock on relation 17055 of database 16387; blocked by process 6468.
# Process 6468 waits for AccessExclusiveLock on relation 17026 of database 16387; blocked by process 6609.
# HINT: See server log for query details.
# ./lib/rbm/acts/rbm-acts_as_hierarchy.rb:169:in `search_hierarchy'
2) fixtures page index search using the basic search input displays several results
Failure/Error: display_name: fixture_type.display_name.truncate(40),
NoMethodError:
undefined method `truncate' for nil:NilClass
# ./app/services/data_table/fixture_type.rb:36:in `block in get_data'
# ./app/services/data_table/fixture_type.rb:16:in `get_data'
# ./app/services/data_table/base.rb:25:in `get_datatable'
# ./app/controllers/zebra/fixture_types_controller.rb:25:in `block (2 levels) in index'
# ./app/controllers/zebra/fixture_types_controller.rb:20:in `index'
# ./app/controllers/application_controller.rb:559:in `track_permissons'
# ./lib/error_handler.rb:2:in `handle_errors'
# ------------------
# --- Caused by: ---
# Capybara::CapybaraError:
# Your application server raised an error - It has been raised in your test code because Capybara.raise_server_errors == true
# ./spec/spec_helper.rb:76:in `block (2 levels) in <top (required)>'
Deprecation Warnings:
Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /home/travis/build/RBM-Technologies/vmm/spec/models/comment_display_setting_spec.rb:222:in `block (5 levels) in <top (required)>'.
If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.
1 deprecation warning total
Finished in 11 minutes 59 seconds (files took 13.39 seconds to load)
1170 examples, 2 failures, 13 pending
Failed examples:
rspec ./spec/features/fixtures_spec.rb:27 # fixtures page index search using the basic search input displays only one fixture
rspec ./spec/features/fixtures_spec.rb:35 # fixtures page index search using the basic search input displays several results
Randomized with seed 44380
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment