diff --git a/web/app/assets/javascripts/networkTestHelper.js b/web/app/assets/javascripts/networkTestHelper.js index 3d6c69688..d8785933f 100644 --- a/web/app/assets/javascripts/networkTestHelper.js +++ b/web/app/assets/javascripts/networkTestHelper.js @@ -144,8 +144,8 @@ $testResults.removeClass('good acceptable bad testing'); $testScoreAudio.removeClass('good acceptable bad testing'); $testScoreVideo.removeClass('good acceptable bad testing'); - $scoredClientsAudio.text('?') - $scoredClientsVideo.text('?') + $scoredClientsAudio.text('-') + $scoredClientsVideo.text('-') $inProgressText.empty(); $audioResultText.empty(); $audioResultText.hide(); @@ -203,7 +203,7 @@ $inProgressText.text('Your router and Internet service will support:') if(!score || score.length == 0) { - $scoredClientsVideo.html('?'); + $scoredClientsVideo.html('-'); } else { @@ -1099,7 +1099,7 @@ setTimeout(attemptTestPassVideo, 500); // wait a second to avoid race conditions with client/server comm } else if (up) { - if (numClientToTestVideo == 2 /**gon.ftue_network_test_max_clients*/) { + if (numClientToTestVideo == gon.ftue_network_test_max_clients) { attempt.reason = "success"; testFinishedVideo(); } diff --git a/web/app/assets/stylesheets/client/wizard/gearWizard.css.scss b/web/app/assets/stylesheets/client/wizard/gearWizard.css.scss index 4674ea78a..3f2cdc919 100644 --- a/web/app/assets/stylesheets/client/wizard/gearWizard.css.scss +++ b/web/app/assets/stylesheets/client/wizard/gearWizard.css.scss @@ -387,6 +387,7 @@ } .network-test-score-audio, .network-test-score-video { + white-space:nowrap; height: 40px; padding: 10px; color: white; diff --git a/web/app/views/clients/_network_test.html.haml b/web/app/views/clients/_network_test.html.haml index ed8787d45..38a432239 100644 --- a/web/app/views/clients/_network_test.html.haml +++ b/web/app/views/clients/_network_test.html.haml @@ -26,11 +26,11 @@ .network-test-score-audio Audio: .scored-clients - ? + - .network-test-score-video Video: .scored-clients - ? + - .scoring-bar .current-score testing... diff --git a/web/config/application.rb b/web/config/application.rb index feb3e0084..2baaf5aee 100644 --- a/web/config/application.rb +++ b/web/config/application.rb @@ -281,7 +281,7 @@ if defined?(Bundler) # how long to test at each network test step config.ftue_network_test_duration = 10 # max number of people to test - config.ftue_network_test_max_clients = 5 + config.ftue_network_test_max_clients = 8 # packet size (bytes) of audio-only test config.ftue_network_test_packet_size = 60 # packet size (bytes) of audio + video test diff --git a/web/spec/features/network_test_spec.rb b/web/spec/features/network_test_spec.rb index 4f8df53ce..5073e8a70 100644 --- a/web/spec/features/network_test_spec.rb +++ b/web/spec/features/network_test_spec.rb @@ -32,7 +32,8 @@ describe "Network Test", :js => true, :type => :feature, :capybara_feature => tr # start the test find('.start-network-test').trigger(:click) find('.user-btn', text: 'RUN NETWORK TEST ANYWAY').trigger(:click) - find('.scored-clients', text: '5') + find('.network-test-score-audio .scored-clients', text: '5') + find('.network-test-score-video .scored-clients', text: '2') wait_for_ajax # waiting for Diagnostic post to finish