* VRFS-3427 - update FTUE to test video, not just audio
This commit is contained in:
parent
729974013a
commit
fc69242578
|
|
@ -441,10 +441,19 @@
|
|||
|
||||
}
|
||||
|
||||
function SetVideoNetworkTestScore(numClients) {
|
||||
|
||||
}
|
||||
|
||||
function GetNetworkTestScore() {
|
||||
return 8;
|
||||
}
|
||||
|
||||
|
||||
function GetVideoNetworkTestScore() {
|
||||
return 8;
|
||||
}
|
||||
|
||||
function SetLatencyTestBlocked(blocked) {
|
||||
|
||||
}
|
||||
|
|
@ -1044,6 +1053,8 @@
|
|||
this.IsMyNetworkWireless = IsMyNetworkWireless;
|
||||
this.SetNetworkTestScore = SetNetworkTestScore;
|
||||
this.GetNetworkTestScore = GetNetworkTestScore;
|
||||
this.SetVideoNetworkTestScore = SetVideoNetworkTestScore;
|
||||
this.GetVideoNetworkTestScore = GetVideoNetworkTestScore;
|
||||
this.SetLatencyTestBlocked = SetLatencyTestBlocked;
|
||||
this.isLatencyTestBlocked = isLatencyTestBlocked;
|
||||
this.GetLastLatencyTestTimes = GetLastLatencyTestTimes;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -400,14 +400,18 @@
|
|||
display:none;
|
||||
}
|
||||
|
||||
.network-test-score {
|
||||
height: 24px;
|
||||
.network-test-score-audio, .network-test-score-video {
|
||||
white-space:nowrap;
|
||||
height: 40px;
|
||||
padding: 10px;
|
||||
color: white;
|
||||
font-size: 20px;
|
||||
font-size: 16px;
|
||||
background-color: #222;
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 10px;
|
||||
width:50%;
|
||||
@include border_box_sizing;
|
||||
float:left;
|
||||
|
||||
&.good {
|
||||
background-color: #72a43b;
|
||||
|
|
@ -418,6 +422,8 @@
|
|||
&.bad {
|
||||
background-color: #7B0C00;
|
||||
}
|
||||
|
||||
.scored-clients{display:inline}
|
||||
}
|
||||
|
||||
.scoring-bar {
|
||||
|
|
@ -425,8 +431,10 @@
|
|||
height: 20px;
|
||||
left: 0;
|
||||
position: relative;
|
||||
margin-bottom:10px;
|
||||
//display:inline-block;
|
||||
display: none;
|
||||
//display: none;
|
||||
visibility:hidden;
|
||||
|
||||
.current-score {
|
||||
background-color: gray;
|
||||
|
|
@ -479,7 +487,12 @@
|
|||
}
|
||||
}
|
||||
.network-test-text {
|
||||
|
||||
ul {
|
||||
margin-top:10px;
|
||||
}
|
||||
li {
|
||||
margin-bottom:10px;
|
||||
}
|
||||
}
|
||||
|
||||
.instructions {
|
||||
|
|
@ -492,13 +505,14 @@
|
|||
&.testing {
|
||||
|
||||
text-align: left;
|
||||
.network-test-score {
|
||||
display: none;
|
||||
.network-test-score-audio {
|
||||
//display: none;
|
||||
}
|
||||
|
||||
.scoring-bar {
|
||||
display: inline-block;
|
||||
margin-bottom: 10px;
|
||||
visibility:visible;
|
||||
}
|
||||
|
||||
.network-test-text {
|
||||
|
|
@ -511,20 +525,20 @@
|
|||
}
|
||||
|
||||
&.good {
|
||||
.network-test-score {
|
||||
background-color: #72a43b;
|
||||
.network-test-score-audio, .network-test-score-video {
|
||||
// background-color: #72a43b;
|
||||
}
|
||||
}
|
||||
|
||||
&.acceptable {
|
||||
.network-test-score {
|
||||
background-color: #D6A800;
|
||||
.network-test-score-audio, .network-test-score-video {
|
||||
//background-color: #D6A800;
|
||||
}
|
||||
}
|
||||
|
||||
&.bad {
|
||||
.network-test-score {
|
||||
background-color: #7B0C00;
|
||||
.network-test-score-audio, .network-test-score-video {
|
||||
//background-color: #7B0C00;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,5 +10,15 @@
|
|||
.network-test-results {
|
||||
height:268px ! important;
|
||||
}
|
||||
|
||||
|
||||
.gear-wizard-only {
|
||||
display:none;
|
||||
}
|
||||
&[data-mode="gear-wizard"] {
|
||||
.gear-wizard-only {
|
||||
display:inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
.network-test
|
||||
.help-text In this step, you will test your router and Internet connection to ensure that you can play in online sessions, and to see how many musicians can be in a session with you based on your internet connection. If you don't want to play online in real-time sessions, you can click NEXT to skip this step.
|
||||
.help-text
|
||||
%span In this step, you will test your router and Internet connection to ensure that you can play in online sessions, and to see how many musicians can be in a session with you based on your internet connection.
|
||||
%span.gear-wizard-only If you don't want to play online in real-time sessions, you can click NEXT to skip this step.
|
||||
.wizard-step-content
|
||||
.wizard-step-column
|
||||
%h2 Instructions
|
||||
|
|
@ -21,12 +23,23 @@
|
|||
.wizard-step-column
|
||||
%h2 Test Results
|
||||
.network-test-results.ftue-box
|
||||
.network-test-score-audio
|
||||
Audio:
|
||||
.scored-clients
|
||||
-
|
||||
.network-test-score-video
|
||||
Video:
|
||||
.scored-clients
|
||||
-
|
||||
.scoring-bar
|
||||
.current-score
|
||||
testing...
|
||||
.subscore
|
||||
.good-marker
|
||||
.good-line
|
||||
.network-test-score
|
||||
.scored-clients
|
||||
.network-test-text
|
||||
|
||||
.network-test-text
|
||||
.in-progress
|
||||
%ul
|
||||
%li.audio-result
|
||||
%li.video-result
|
||||
|
|
|
|||
|
|
@ -282,8 +282,11 @@ if defined?(Bundler)
|
|||
config.ftue_network_test_duration = 10
|
||||
# max number of people to test
|
||||
config.ftue_network_test_max_clients = 8
|
||||
# packet size (bytes) of test
|
||||
# packet size (bytes) of audio-only test
|
||||
config.ftue_network_test_packet_size = 60
|
||||
# packet size (bytes) of audio + video test
|
||||
config.ftue_network_test_packet_size_video = 500
|
||||
|
||||
# number of times that the backend retries before giving up
|
||||
config.ftue_network_test_backend_retries = 3
|
||||
# amount of time that we want passed until we run the next network test
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
Gon.global.facebook_app_id = Rails.application.config.facebook_app_id
|
||||
Gon.global.ftue_network_test_packet_size = Rails.application.config.ftue_network_test_packet_size
|
||||
Gon.global.ftue_network_test_packet_size_video = Rails.application.config.ftue_network_test_packet_size_video
|
||||
Gon.global.ftue_network_test_backend_retries = Rails.application.config.ftue_network_test_backend_retries
|
||||
Gon.global.twitter_public_account = Rails.application.config.twitter_public_account
|
||||
Gon.global.scoring_get_work_interval = Rails.application.config.scoring_get_work_interval
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue