diff options
author | Go MAEDA <maeda@farend.jp> | 2022-02-19 07:36:40 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-02-19 07:36:40 +0000 |
commit | 6a46743cd389aeefc20348445fee2135a8e4c35c (patch) | |
tree | 8c504de5f36e05db870cd2f8f70eb7d4e15fb712 /test/functional/repositories_git_controller_test.rb | |
parent | 9f822657820fb87675698d9e6151e7dc650e099f (diff) | |
download | redmine-6a46743cd389aeefc20348445fee2135a8e4c35c.tar.gz redmine-6a46743cd389aeefc20348445fee2135a8e4c35c.zip |
Fix code copying in common browsers (#36580).
Patch by Vitaly vit9696.
git-svn-id: http://svn.redmine.org/redmine/trunk@21415 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_git_controller_test.rb')
-rw-r--r-- | test/functional/repositories_git_controller_test.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index 120118d9c..09458f7f9 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -378,7 +378,7 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest ) assert_response :success # Line 22 removed - assert_select 'th.line-num:contains(22) ~ td.diff_out', :text => /def remove/ + assert_select 'th.line-num[data-txt=22] ~ td.diff_out', :text => /def remove/ assert_select 'h2', :text => /2f9c0091/ end end @@ -403,7 +403,7 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest ) assert_response :success # Line 22 removed - assert_select 'th.line-num:contains(22) ~ td.diff_out', :text => /def remove/ + assert_select 'th.line-num[data-txt=22] ~ td.diff_out', :text => /def remove/ assert_select 'h2', :text => /2f9c0091/ end end @@ -589,7 +589,7 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest # Line 23, changeset 2f9c0091 assert_select 'tr' do - assert_select 'th.line-num', :text => '23' + assert_select 'th.line-num a[data-txt=?]', '23' assert_select 'td.revision', :text => /2f9c0091/ assert_select 'td.author', :text => 'jsmith' assert_select 'td', :text => /remove_watcher/ @@ -673,7 +673,8 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest :rev => r1 } ) - assert_select "th.line-num", :text => '1' do + assert_select "th.line-num" do + assert_select "a[data-txt=?]", '1' assert_select "+ td.revision" do assert_select "a", :text => '57ca437c' assert_select "+ td.author", :text => "jsmith" do @@ -698,7 +699,8 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest :rev => r1 } ) - assert_select "th.line-num", :text => '1' do + assert_select "th.line-num" do + assert_select "a[data-txt=?]", '1' assert_select "+ td.revision" do assert_select "a", :text => '83ca5fd5' assert_select "+ td.author", :text => "Felix Schäfer" do |