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
setup do
@order = orders(:one)
end
test "visiting the index" do
visit orders_url
assert_selector "h1", text: "Orders"
end
test "creating a Order" do
visit orders_url
click_on "New Order"
fill_in "Address", with: @order.address
fill_in "Email", with: @order.email
fill_in "Name", with: @order.name
fill_in "Pay Type", with: @order.pay_type
click_on "Create Order"
assert_text "Order was successfully created"
click_on "Back"
end
test "updating a Order" do
visit orders_url
click_on "Edit", match: :first
fill_in "Address", with: @order.address
fill_in "Email", with: @order.email
fill_in "Name", with: @order.name
fill_in "Pay Type", with: @order.pay_type
click_on "Update Order"
assert_text "Order was successfully updated"
click_on "Back"
end
test "destroying a Order" do
visit orders_url
page.accept_confirm do
click_on "Destroy", match: :first
end
assert_text "Order was successfully destroyed"
end
test "check routing number" do
visit store_index_url
first('.catalog li').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
Using rake 12.2.1
Using concurrent-ruby 1.0.5
Using i18n 0.9.1
Using minitest 5.10.3
Using thread_safe 0.3.6
Using tzinfo 1.2.4
Using activesupport 5.2.0.alpha from source at `/home/rubys/git/rails`
Using builder 3.2.3
Using erubi 1.7.0
Using mini_portile2 2.3.0
Using nokogiri 1.8.1
Using rails-dom-testing 2.0.3
Using crass 1.0.2
Using loofah 2.1.1
Using rails-html-sanitizer 1.0.3
Using actionview 5.2.0.alpha from source at `/home/rubys/git/rails`
Using rack 2.0.3
Using rack-test 0.7.0
Using actionpack 5.2.0.alpha from source at `/home/rubys/git/rails`
Using nio4r 2.1.0
Using websocket-extensions 0.1.3
Using websocket-driver 0.6.5
Using actioncable 5.2.0.alpha from source at `/home/rubys/git/rails`
Using globalid 0.4.1
Using activejob 5.2.0.alpha from source at `/home/rubys/git/rails`
Using mini_mime 1.0.0
Using mail 2.7.0
Using actionmailer 5.2.0.alpha from source at `/home/rubys/git/rails`
Using activemodel 5.2.0.alpha from source at `/home/rubys/git/rails`
Using activemodel-serializers-xml 1.0.2
Using arel 9.0.0.alpha from source at `/home/rubys/git/arel`
Using activerecord 5.2.0.alpha from source at `/home/rubys/git/rails`
Using activestorage 5.2.0.alpha from source at `/home/rubys/git/rails`
Using public_suffix 3.0.1
Using addressable 2.5.2
Using io-like 0.3.0
Using archive-zip 0.7.0
Using bindex 0.5.0
Using msgpack 1.1.0
Using bootsnap 1.1.5
Using bundler 1.16.0
Using byebug 9.1.0
Using xpath 2.1.0
Using capybara 2.15.4
Using ffi 1.9.18
Using childprocess 0.8.0
Using chromedriver-helper 1.1.0
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using coffee-script 2.4.1
Using method_source 0.9.0
Using thor 0.19.4
Using railties 5.2.0.alpha from source at `/home/rubys/git/rails`
Using coffee-rails 4.2.2
Using et-orbi 1.0.8
Using multi_json 1.12.2
Using jbuilder 2.7.0
Using mono_logger 1.1.0
Using mustermann 1.0.1
Using pg 0.19.0
Using puma 3.10.0
Using queue_classic 3.2.0.RC1 from source at `/home/rubys/git/queue_classic`
Using rack-protection 2.0.0
Using rack-proxy 0.6.2
Using sprockets 3.7.1
Using sprockets-rails 3.2.1
Using rails 5.2.0.alpha from source at `/home/rubys/git/rails`
Using rb-fsevent 0.10.2
Using rb-inotify 0.9.9 from source at `/home/rubys/git/rb-inotify`
Using redis 4.0.1
Using redis-namespace 1.6.0
Using tilt 2.0.8
Using sinatra 2.0.0
Using vegas 0.1.11
Using resque 1.27.4
Using rufus-scheduler 3.4.2
Using resque-scheduler 4.3.0 from source at `/home/rubys/git/resque-scheduler`
Using rubyzip 1.2.1
Using sass-listen 4.0.0
Using sass 3.5.3
Using sass-rails 5.0.6 from source at `/home/rubys/git/sass-rails`
Using selenium-webdriver 3.7.0
Using spring 2.0.2
Using sqlite3 1.3.13
Using turbolinks-source 5.0.3
Using turbolinks 5.0.1
Using uglifier 3.2.0
Using web-console 3.5.1 from source at `/home/rubys/git/web-console`
Using webpacker 3.0.2
Bundle complete! 22 Gemfile dependencies, 89 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Hash: 8faaa225569c3520d2c8
Version: webpack 3.8.1
Time: 1341ms
Asset Size Chunks Chunk Names
pay_type-fdac379481dac4a65e7a.js 638 kB 0 [emitted] [big] pay_type
hello_react-dbf911139912c672b7a0.js 641 kB 1 [emitted] [big] hello_react
application-9a4c61beee1852311db0.js 3 kB 2 [emitted] application
manifest.json 209 bytes [emitted]
[23] ./app/javascript/packs/application.js 515 bytes {2} [built]
[24] ./app/javascript/packs/hello_react.jsx 513 bytes {1} [built]
[27] ./app/javascript/packs/pay_type.jsx 679 bytes {0} [built]
[28] ./app/javascript/PayTypeSelector/index.jsx 4.41 kB {0} [built]
[29] ./app/javascript/PayTypeSelector/NoPayType.jsx 1.98 kB {0} [built]
[30] ./app/javascript/PayTypeSelector/CreditCardPayType.jsx 2.88 kB {0} [built]
[31] ./app/javascript/PayTypeSelector/CheckPayType.jsx 2.77 kB {0} [built]
[32] ./app/javascript/PayTypeSelector/PurchaseOrderPayType.jsx 2.45 kB {0} [built]
+ 25 hidden modules
rake test:system
Run options: --seed 55201
# Running:
E
Error:
OrdersTest#test_check_routing_number:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/orders_test.rb:51:in `block in <class:OrdersTest>'
Error:
OrdersTest#test_check_routing_number:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
bin/rails test test/system/orders_test.rb:50
E
Error:
OrdersTest#test_visiting_the_index:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/orders_test.rb:9:in `block in <class:OrdersTest>'
Error:
OrdersTest#test_visiting_the_index:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
bin/rails test test/system/orders_test.rb:8
E
Error:
OrdersTest#test_updating_a_Order:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/orders_test.rb:28:in `block in <class:OrdersTest>'
Error:
OrdersTest#test_updating_a_Order:
Net::ReadTimeout: Net::ReadTimeout
bin/rails test test/system/orders_test.rb:27
E
Error:
OrdersTest#test_creating_a_Order:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/orders_test.rb:14:in `block in <class:OrdersTest>'
Error:
OrdersTest#test_creating_a_Order:
Net::ReadTimeout: Net::ReadTimeout
bin/rails test test/system/orders_test.rb:13
E
Error:
OrdersTest#test_destroying_a_Order:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/orders_test.rb:42:in `block in <class:OrdersTest>'
Error:
OrdersTest#test_destroying_a_Order:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
bin/rails test test/system/orders_test.rb:41
E
Error:
ProductsTest#test_creating_a_Product:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/products_test.rb:14:in `block in <class:ProductsTest>'
Error:
ProductsTest#test_creating_a_Product:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
bin/rails test test/system/products_test.rb:13
E
Error:
ProductsTest#test_destroying_a_Product:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/products_test.rb:42:in `block in <class:ProductsTest>'
Error:
ProductsTest#test_destroying_a_Product:
Net::ReadTimeout: Net::ReadTimeout
bin/rails test test/system/products_test.rb:41
E
Error:
ProductsTest#test_visiting_the_index:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/products_test.rb:9:in `block in <class:ProductsTest>'
Error:
ProductsTest#test_visiting_the_index:
Net::ReadTimeout: Net::ReadTimeout
bin/rails test test/system/products_test.rb:8
E
Error:
ProductsTest#test_updating_a_Product:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/products_test.rb:28:in `block in <class:ProductsTest>'
Error:
ProductsTest#test_updating_a_Product:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
bin/rails test test/system/products_test.rb:27
E
Error:
LineItemsTest#test_creating_a_Line_item:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/line_items_test.rb:14:in `block in <class:LineItemsTest>'
Error:
LineItemsTest#test_creating_a_Line_item:
Net::ReadTimeout: Net::ReadTimeout
bin/rails test test/system/line_items_test.rb:13
E
Error:
LineItemsTest#test_visiting_the_index:
Net::ReadTimeout: Net::ReadTimeout
test/system/line_items_test.rb:9:in `block in <class:LineItemsTest>'
Error:
LineItemsTest#test_visiting_the_index:
Net::ReadTimeout: Net::ReadTimeout
bin/rails test test/system/line_items_test.rb:8
E
Error:
LineItemsTest#test_updating_a_Line_item:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/line_items_test.rb:26:in `block in <class:LineItemsTest>'
Error:
LineItemsTest#test_updating_a_Line_item:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
bin/rails test test/system/line_items_test.rb:25
E
Error:
LineItemsTest#test_destroying_a_Line_item:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/line_items_test.rb:38:in `block in <class:LineItemsTest>'
Error:
LineItemsTest#test_destroying_a_Line_item:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
bin/rails test test/system/line_items_test.rb:37
E
Error:
CartsTest#test_destroying_a_Cart:
Net::ReadTimeout: Net::ReadTimeout
test/system/carts_test.rb:34:in `block in <class:CartsTest>'
Error:
CartsTest#test_destroying_a_Cart:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
bin/rails test test/system/carts_test.rb:33
E
Error:
CartsTest#test_visiting_the_index:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
test/system/carts_test.rb:9:in `block in <class:CartsTest>'
Error:
CartsTest#test_visiting_the_index:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
bin/rails test test/system/carts_test.rb:8
E
Error:
CartsTest#test_updating_a_Cart:
Net::ReadTimeout: Net::ReadTimeout
test/system/carts_test.rb:24:in `block in <class:CartsTest>'
Error:
CartsTest#test_updating_a_Cart:
Net::ReadTimeout: Net::ReadTimeout
bin/rails test test/system/carts_test.rb:23
E
Error:
CartsTest#test_creating_a_Cart:
Net::ReadTimeout: Net::ReadTimeout
test/system/carts_test.rb:14:in `block in <class:CartsTest>'
Error:
CartsTest#test_creating_a_Cart:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-98-generic x86_64)
bin/rails test test/system/carts_test.rb:13
Finished in 2059.164024s, 0.0083 runs/s, 0.0000 assertions/s.
17 runs, 0 assertions, 0 failures, 17 errors, 0 skips
rake test
Run options: --seed 7236
# Running:
.......................................
Finished in 3.278852s, 11.8944 runs/s, 24.0938 assertions/s.
39 runs, 79 assertions, 0 failures, 0 errors, 0 skips
14.1 Iteration I1: Email Notifications 13.1 Iteration H1: Webpacker and App-Like JavaScript