Project

General

Profile

Defect #41853 » 0002-Fix-functional-tests-broken-by-r23328.patch

Katsuya HIDAKA, 2024-11-29 19:26

View differences:

test/functional/issues_controller_test.rb
2821 2821
      get(:show, :params => {:id => 1})
2822 2822
    end
2823 2823
    assert_select 'div#watchers ul' do
2824
      # User(id=2)
2824 2825
      assert_select 'li.user-2' do
2825 2826
        assert_select 'img.gravatar[title=?]', 'John Smith'
2826 2827
        assert_select 'a[href="/users/2"]'
2827 2828
        assert_select 'a[class*=delete]'
2828 2829
      end
2830
      # Group(id=10)
2829 2831
      assert_select "li.user-10" do
2830
        assert_select 'img.gravatar[title=?]', 'A Team'
2832
        assert_select 'img.gravatar[title=?]', 'A Team', false
2831 2833
        assert_select 'a[href="/groups/10"]'
2832 2834
        assert_select 'a[class*=delete]'
2833 2835
      end
test/functional/messages_controller_test.rb
100 100
      end
101 101

  
102 102
      assert_select 'div#watchers ul' do
103
        # User(id=2)
103 104
        assert_select 'li.user-2' do
104 105
          assert_select 'img.gravatar[title=?]', 'John Smith', is_display_gravatar
105 106
          assert_select 'a[href="/users/2"]'
106 107
          assert_select 'a[class*=delete]'
107 108
        end
109
        # Group(id=10)
108 110
        assert_select "li.user-10" do
109
          assert_select 'img.gravatar[title=?]', 'A Team', is_display_gravatar
110
          assert_select 'a[href="/users/10"]', false
111
          assert_select 'img.gravatar[title=?]', 'A Team', false
112
          assert_select 'a[href="/groups/10"]'
111 113
          assert_select 'a[class*=delete]'
112 114
        end
113 115
      end
test/functional/wiki_controller_test.rb
136 136
      end
137 137

  
138 138
      assert_select 'div#watchers ul' do
139
        # User(id=2)
139 140
        assert_select 'li.user-2' do
140 141
          assert_select 'img.gravatar[title=?]', 'John Smith', is_display_gravatar
141 142
          assert_select 'a[href="/users/2"]'
142 143
          assert_select 'a[class*=delete]'
143 144
        end
144
        assert_select 'li.user-10' do
145
          assert_select 'img.gravatar[title=?]', 'A Team', is_display_gravatar
146
          assert_select 'a[href="/users/10"]', false
145
        # Group(id=10)
146
        assert_select "li.user-10" do
147
          assert_select 'img.gravatar[title=?]', 'A Team', false
148
          assert_select 'a[href="/groups/10"]'
147 149
          assert_select 'a[class*=delete]'
148 150
        end
149 151
      end
(8-8/8)