14.1 Iteration I1: Email Notifications 13.1 Iteration H1: Webpacker and App-Like JavaScript
1 (tests|runs), 2 assertions, 0 failures, 0 errors. <0> was expected to be >= <1>. Traceback: /home/rubys/git/awdwr/edition4/checkdepot.rb:38:in `assert_test_summary' /home/rubys/git/awdwr/edition4/checkdepot.rb:353:in `block in <class:DepotTest>'
edit test/system/orders_test.rb
require "application_system_test_case"
class OrdersTest < ApplicationSystemTestCase
test "check routing number" do
visit store_index_url
first('.entry').click_on 'Add to Cart'
click_on 'Checkout'
fill_in 'order_name', with: 'Dave Thomas'
fill_in 'order_address', with: '123 Main Street'
fill_in 'order_email', with: 'dave@example.com'
assert_no_selector "#order_routing_number"
select 'Check', from: 'pay_type'
assert_selector "#order_routing_number"
end
end
RAILS_ENV=test bin/webpack
yarn run v0.24.5
$ "/home/rubys/git/awdwr/edition4/work-233-51/depot/node_modules/.bin/webpack" --config /home/rubys/git/awdwr/edition4/work-233-51/depot/config/webpack/test.js
Hash: 75ac69055020c3b6e6b4
Version: webpack 2.6.1
Time: 2797ms
Asset Size Chunks Chunk Names
pay_type.js 735 kB 0 [emitted] [big] pay_type
hello_react.js 719 kB 1 [emitted] [big] hello_react
application.js 3.17 kB 2 [emitted] application
manifest.json 146 bytes [emitted]
[14] ./~/react/lib/ReactElement.js 11.2 kB {0} {1} [built]
[18] ./~/react/lib/React.js 3.32 kB {0} {1} [built]
[24] ./~/react/react.js 56 bytes {0} {1} [built]
[81] ./~/react-dom/index.js 59 bytes {0} {1} [built]
[82] ./~/prop-types/factoryWithTypeCheckers.js 18.6 kB {0} {1} [built]
[111] ./~/react-dom/lib/ReactDOM.js 5.14 kB {0} {1} [built]
[181] ./app/javascript/PayTypeSelector/index.jsx 4.26 kB {0} [built]
[182] ./~/prop-types/index.js 1.08 kB {1} [built]
[183] ./app/javascript/PayTypeSelector/CheckPayType.jsx 2.77 kB {0} [built]
[184] ./app/javascript/PayTypeSelector/CreditCardPayType.jsx 2.88 kB {0} [built]
[185] ./app/javascript/PayTypeSelector/NoPayType.jsx 1.98 kB {0} [built]
[186] ./app/javascript/PayTypeSelector/PurchaseOrderPayType.jsx 2.45 kB {0} [built]
[187] ./app/javascript/packs/hello_react.jsx 513 bytes {1} [built]
[188] ./app/javascript/packs/pay_type.jsx 680 bytes {0} [built]
[189] ./app/javascript/packs/application.js 515 bytes {2} [built]
+ 175 hidden modules
Done in 3.46s.
rake test:system
Run options: --seed 58905
# Running:
E
Error:
OrdersTest#test_check_routing_number:
Selenium::WebDriver::Error::WebDriverError: Unable to find chromedriver. Please download the server from http://chromedriver.storage.googleapis.com/index.html and place it somewhere on your PATH. More info at https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver.
test/system/orders_test.rb:6:in `block in <class:OrdersTest>'
Error:
OrdersTest#test_check_routing_number:
Selenium::WebDriver::Error::WebDriverError: Unable to find chromedriver. Please download the server from http://chromedriver.storage.googleapis.com/index.html and place it somewhere on your PATH. More info at https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver.
bin/rails test test/system/orders_test.rb:5
Finished in 0.120364s, 8.3081 runs/s, 0.0000 assertions/s.
1 runs, 0 assertions, 0 failures, 1 errors, 0 skips
rake test
Run options: --seed 22524
# Running:
.......................................
Finished in 1.239391s, 31.4671 runs/s, 62.9341 assertions/s.
39 runs, 78 assertions, 0 failures, 0 errors, 0 skips
14.1 Iteration I1: Email Notifications 13.1 Iteration H1: Webpacker and App-Like JavaScript