Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: undefined is not an object (evaluating 'window.SpreePaths.mounted_at') #584

Open
la-ruby opened this issue Oct 29, 2020 · 3 comments
Labels

Comments

@la-ruby
Copy link

la-ruby commented Oct 29, 2020

I wrote a test in a rails application that has spree commerce,
when I run it in console I get: TypeError
The browser based test suite passes though.

$ be rake teaspoon
Starting the Teaspoon server...
Teaspoon running default suite at http://127.0.0.1:58804/teaspoon/default
TypeError: undefined is not an object (evaluating 'window.SpreePaths.mounted_at')
  # spree.self-1e510c93107b6414cfd67d51db14a3526a5d2ec9bf056d8a46768abfc1b14817.js:13 -- mountedAt
  # spree.self-1e510c93107b6414cfd67d51db14a3526a5d2ec9bf056d8a46768abfc1b14817.js:23 -- pathFor
  # spree.self-1e510c93107b6414cfd67d51db14a3526a5d2ec9bf056d8a46768abfc1b14817.js:54
  # spree.self-1e510c93107b6414cfd67d51db14a3526a5d2ec9bf056d8a46768abfc1b14817.js:64

TypeError: undefined is not an object (evaluating 'window.SpreePaths.mounted_at')
rake teaspoon failed
$
@mathieujobin
Copy link
Collaborator

what version of teaspoon are you using? what other gems is also in use?

@mathieujobin
Copy link
Collaborator

can you please retry with latest master?

group :development, :test do
    gem 'selenium-webdriver'
    gem 'teaspoon', github: 'jejacks0n/teaspoon'
    gem 'teaspoon-jasmine', github: 'jejacks0n/teaspoon'
end

@savy-stockpile
Copy link

savy-stockpile commented Jul 13, 2021

I have the same issue, even tried with the latest master. No luck.
teaspoon 1.2.2
teaspoon-jasmine 2.9.1

Other gems:
gem 'sqlite3'
gem 'rails_real_favicon'
gem 'rake', '> 11.1.1'
gem 'quiet_assets'
gem 'thin'
gem 'sprockets-es6'
gem 'sass-rails', '
> 5.0'
gem 'bootstrap-sass', '> 3.3.6'
gem 'compass-rails', '
> 3.0'
gem 'autoprefixer-rails'
gem 'scut'
gem 'zeroclipboard-rails'
gem 'font-awesome-rails'
gem 'flatpickr_rails'
gem 'toastr-rails'
gem 'clipboard-rails'
gem 'momentjs-rails'
gem 'moment_timezone-rails'
gem 'sprockets_uglifier_with_source_maps'
gem 'jquery-rails'
gem 'js_assets'
gem 'angularjs-rails'
gem 'angular-rails-templates'
gem 'dotenv'
gem 'selenium-webdriver'
gem 'faraday'
gem 'phantomjs'
gem 'jasmine', '~> 2.8'
gem 'rspec-rails'
gem 'rspec-instafail'
gem 'capybara'
gem 'poltergeist'
gem 'capybara-screenshot'
gem 'awesome_print'
gem 'teaspoon'
gem 'teaspoon-jasmine'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants