mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
Sort measures by the highest score to lowest score [finishes #179726949]
This commit is contained in:
parent
d7ead5bac9
commit
87f268dd7a
4 changed files with 35 additions and 0 deletions
|
|
@ -69,6 +69,11 @@ feature 'School dashboard', type: feature do
|
|||
expect(problem_solving_emphasis_row['x']).to eq '0.0%'
|
||||
|
||||
page.assert_selector('.measure-row-bar', count: Measure.count)
|
||||
professional_qualifications_row_index = measure_row_bars.find_index { |item| item['data-for-measure-id'] == '1A-i' }
|
||||
student_physical_safety_row_index = measure_row_bars.find_index { |item| item['data-for-measure-id'] == '2A-i' }
|
||||
problem_solving_emphasis_row_index = measure_row_bars.find_index { |item| item['data-for-measure-id'] == '4C-i' }
|
||||
expect(student_physical_safety_row_index).to be < professional_qualifications_row_index
|
||||
expect(professional_qualifications_row_index).to be < problem_solving_emphasis_row_index
|
||||
end
|
||||
|
||||
let(:username) { 'winchester' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue