diff --git a/spec/components/admin/stats/table_component_spec.rb b/spec/components/admin/stats/table_component_spec.rb index 68f02a76a..07be23ca0 100644 --- a/spec/components/admin/stats/table_component_spec.rb +++ b/spec/components/admin/stats/table_component_spec.rb @@ -41,7 +41,7 @@ render_inline(described_class.new(months: [Date.new(2026, 6, 1)], rows: [workshops_row], caption: 'Workshops')) - expect(attendance_table).to have_no_selector('td[colspan]') + expect(attendance_table).to have_no_css('td[colspan]') expect(page).to have_css('caption', text: 'Workshops') end diff --git a/spec/features/admin/stats_page_spec.rb b/spec/features/admin/stats_page_spec.rb index 643b20d39..c8485312b 100644 --- a/spec/features/admin/stats_page_spec.rb +++ b/spec/features/admin/stats_page_spec.rb @@ -20,8 +20,8 @@ expect(page).to have_css('caption', text: 'New sign-ups') expect(page).to have_css('caption', text: 'Workshops') expect(page).to have_css('th', text: 'August 2026') - expect(page).to have_no_selector('th', text: 'September 2026') - expect(page).to have_no_selector('th', text: 'May 2026') + expect(page).to have_no_css('th', text: 'September 2026') + expect(page).to have_no_css('th', text: 'May 2026') expect(page).to have_css('.btn-outline-primary.active', text: '3 months') expect(page).to have_link('Download CSV') end @@ -38,7 +38,7 @@ expect(page).to have_css('th', text: 'June 2026') expect(page).to have_css('th', text: 'July 2026') expect(page).to have_css('th', text: 'August 2026') - expect(page).to have_no_selector('th', text: 'May 2026') + expect(page).to have_no_css('th', text: 'May 2026') end end @@ -50,8 +50,8 @@ visit admin_stats_path(stats: { start_month: '2026-06', end_month: '2026-06' }) expect(page).to have_css('th', text: 'June 2026') - expect(page).to have_no_selector('th', text: 'May 2026') - expect(page).to have_no_selector('th', text: 'July 2026') + expect(page).to have_no_css('th', text: 'May 2026') + expect(page).to have_no_css('th', text: 'July 2026') expect(find('tr', text: 'New coaches')).to have_text('1') expect(find('tr', text: 'New students')).to have_text('0')