From c72083ad68ba7a23f82eb1788637fd91ffc9c570 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Tue, 10 Dec 2024 09:14:28 -0500 Subject: [PATCH] Add system spec for TOS page (#33243) --- spec/system/terms_of_service_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 spec/system/terms_of_service_spec.rb diff --git a/spec/system/terms_of_service_spec.rb b/spec/system/terms_of_service_spec.rb new file mode 100644 index 0000000000..0de12bae36 --- /dev/null +++ b/spec/system/terms_of_service_spec.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require 'rails_helper' + +RSpec.describe 'Terms of Service page' do + it 'visits the about page and renders the web app' do + visit terms_of_service_path + + expect(page) + .to have_css('noscript', text: /Mastodon/) + .and have_css('body', class: 'app-body') + end +end