updates progress bar accuracy
The progress bar now accounts for live coders that have opted for "finish later" Address part of issue #63
This commit is contained in:
3
test/fixtures/answers.yml
vendored
3
test/fixtures/answers.yml
vendored
@ -373,8 +373,9 @@ juan9:
|
||||
juan10:
|
||||
candidate: juan
|
||||
question: fed10
|
||||
answer:
|
||||
answer: 'wibbly wobbly, timey wimey'
|
||||
saved: 1
|
||||
submitted: true
|
||||
created_at: <%= DateTime.now() - 38.hours - 40.minutes %>
|
||||
updated_at: <%= DateTime.now() - 38.hours - 20.minutes %>
|
||||
|
||||
|
@ -31,4 +31,12 @@ class QuestionFlowTest < ActionDispatch::IntegrationTest
|
||||
# TODO: add in capybara and test form post
|
||||
# assert_redirected summary_path
|
||||
end
|
||||
|
||||
test 'juan should be on summary with 80% complete' do
|
||||
setup_auth candidates(:juan)
|
||||
|
||||
get summary_path
|
||||
assert_response :success
|
||||
assert_select '.progress span', '80%'
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user