From: Anton Khorev Date: Mon, 2 Sep 2024 15:05:03 +0000 (+0300) Subject: Test changeset not found page X-Git-Tag: live~239^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/0579ff6e741b7b977840cc51c3c09b408119b069 Test changeset not found page --- diff --git a/test/system/changeset_test.rb b/test/system/changeset_test.rb new file mode 100644 index 000000000..3f50d37ac --- /dev/null +++ b/test/system/changeset_test.rb @@ -0,0 +1,19 @@ +require "application_system_test_case" + +class ChangesetSystemTest < ApplicationSystemTestCase + test "show existing changeset" do + changeset = create(:changeset) + + visit changeset_path(changeset) + within_sidebar do + assert_text "Changeset: #{changeset.id}" + end + end + + test "show error message for a changeset that doesn't exist" do + visit changeset_path(0) + within_sidebar do + assert_text "changeset #0 could not be found" + end + end +end