* antoher wip

This commit is contained in:
Seth Call 2015-08-21 16:44:25 -05:00
parent ea38cc47b6
commit 3616657647
5 changed files with 10 additions and 8 deletions

View File

@ -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();
}

View File

@ -387,6 +387,7 @@
}
.network-test-score-audio, .network-test-score-video {
white-space:nowrap;
height: 40px;
padding: 10px;
color: white;

View File

@ -26,11 +26,11 @@
.network-test-score-audio
Audio:
.scored-clients
?
-
.network-test-score-video
Video:
.scored-clients
?
-
.scoring-bar
.current-score
testing...

View File

@ -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

View File

@ -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