diff --git a/spec/system/avo/dashboards_spec.rb b/spec/system/avo/dashboards_spec.rb index 064b53611..6a4985aba 100644 --- a/spec/system/avo/dashboards_spec.rb +++ b/spec/system/avo/dashboards_spec.rb @@ -177,15 +177,12 @@ end describe "card options" do - let(:url) { "/admin/dashboards/dashy" } - - subject { - visit url - page - } + it do + visit "/admin/dashboards/dashy" - it { is_expected.to have_text "Users count" } - it { is_expected.to have_text "Active users metric" } + expect(page).to have_text "Users count" + expect(page).to have_text "Active users metric" + end end end