diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-10 03:40:48 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-10 03:40:48 +0200 |
| commit | cf730b751b590ca80695492f5d62c4fb43efb4d3 (patch) | |
| tree | 61d1172b925f4a55d072b01a0d41c2db5f14f74f /test | |
| parent | 80e23e2629a37d8ccaa6798a8b5e29b49a3a7268 (diff) | |
Ensure that comparison view toggle is there for all diff modes
Diffstat (limited to 'test')
| -rw-r--r-- | test/controllers/revisions_controller_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/controllers/revisions_controller_test.rb b/test/controllers/revisions_controller_test.rb index 162e6f1..bf92c5b 100644 --- a/test/controllers/revisions_controller_test.rb +++ b/test/controllers/revisions_controller_test.rb | |||
| @@ -139,4 +139,13 @@ class RevisionsControllerTest < ActionController::TestCase | |||
| 139 | assert_select "form.computation input[type=hidden][name=start_revision]" | 139 | assert_select "form.computation input[type=hidden][name=start_revision]" |
| 140 | assert_select "form.computation input[type=hidden][name=end_revision]" | 140 | assert_select "form.computation input[type=hidden][name=end_revision]" |
| 141 | end | 141 | end |
| 142 | |||
| 143 | test "the view toggle is available even when comparing named layers" do | ||
| 144 | login_as :quentin | ||
| 145 | @node.find_or_create_draft(@user) | ||
| 146 | |||
| 147 | post(:diff, params: { :node_id => @node.id, :start_revision => "head", :end_revision => "draft" }) | ||
| 148 | assert_response :success | ||
| 149 | assert_select "a", "Side by side" | ||
| 150 | end | ||
| 142 | end | 151 | end |
