mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Change which category is displayed when the category dropdown is changed
on the analyze page. Finishes #182277818
This commit is contained in:
parent
a04f797f30
commit
61978eb45d
8 changed files with 73 additions and 27 deletions
|
|
@ -51,13 +51,14 @@ describe 'analyze/index' do
|
|||
assign :district, create(:district)
|
||||
assign :school, create(:school)
|
||||
assign :category, category
|
||||
assign :categories, [category]
|
||||
assign :subcategory, subcategory
|
||||
assign :measures, [support_for_teaching, effective_leadership, professional_qualifications]
|
||||
|
||||
render
|
||||
end
|
||||
|
||||
context 'when all the presenters have a non-nil score' do
|
||||
context 'when all the presenters have a nil score' do
|
||||
# let(:grouped_bar_column_presenters) do
|
||||
# measure = create(:measure, name: 'Display Me', measure_id: 'display-me')
|
||||
# scale = create(:scale, measure:)
|
||||
|
|
@ -89,5 +90,10 @@ describe 'analyze/index' do
|
|||
expect(rendered).to have_text '1A-II'
|
||||
expect(rendered).to have_text '1A-III'
|
||||
end
|
||||
|
||||
it 'displays user interface controls' do
|
||||
expect(subject).to have_text 'Focus Area'
|
||||
expect(subject).to have_css '#select-category'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue