Change which category is displayed when the category dropdown is changed

on the analyze page.   Finishes #182277818
This commit is contained in:
Nelson Jovel 2022-05-27 21:39:44 -07:00
parent a04f797f30
commit 61978eb45d
8 changed files with 73 additions and 27 deletions

View file

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