diff --git a/app/views/_tailwind/documentation/about.html.erb b/app/views/_tailwind/documentation/about.html.erb index 2de31efee..1774f57e1 100644 --- a/app/views/_tailwind/documentation/about.html.erb +++ b/app/views/_tailwind/documentation/about.html.erb @@ -53,5 +53,5 @@
You are using version <%= pa_link_to APP_VERSION, "https://github.com/openaustralia/planningalerts/commit/#{APP_VERSION}" %> - of PlanningAlerts. + of Planning Alerts.
diff --git a/spec/features/documentation_pages_spec.rb b/spec/features/documentation_pages_spec.rb index 649cd8383..0a323a95b 100644 --- a/spec/features/documentation_pages_spec.rb +++ b/spec/features/documentation_pages_spec.rb @@ -17,6 +17,7 @@ before do # Give a name to the user so screenshots are consistent with percy sign_in create(:confirmed_user, tailwind_theme: true, name: "Jane Ng") + stub_const "APP_VERSION", "abc123" visit about_path end @@ -31,6 +32,10 @@ page.percy_snapshot("About") end # rubocop:enable RSpec/NoExpectationExample + + it "renders a consistent git revision so screenshots don't change randomly" do + expect(page).to have_content "You are using version abc123 of Planning Alerts" + end end end