summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlexis Reigel <alexis.reigel.ext@siemens.com>2018-07-17 09:59:45 +0200
committerAlexis Reigel <alexis.reigel.ext@siemens.com>2018-08-29 15:02:54 +0200
commit7eee6cd2d5c66d543fcc14e9a87b8b6b411d0794 (patch)
tree65ea394e4e9355f644cd34deefc0033864d34616 /spec
parent34bdb74740d0b983bfc299362b25945c9e50681c (diff)
downloadgitlab-ce-7eee6cd2d5c66d543fcc14e9a87b8b6b411d0794.tar.gz
convert admin runners table to responsive table
Diffstat (limited to 'spec')
-rw-r--r--spec/features/admin/admin_runners_spec.rb24
1 files changed, 10 insertions, 14 deletions
diff --git a/spec/features/admin/admin_runners_spec.rb b/spec/features/admin/admin_runners_spec.rb
index de530eea10a..1363228cac3 100644
--- a/spec/features/admin/admin_runners_spec.rb
+++ b/spec/features/admin/admin_runners_spec.rb
@@ -99,26 +99,22 @@ describe "Admin Runners", :js do
visit admin_runners_path
- within '.runners-content tbody' do
- within('tr:nth-child(1)') do
- expect(page).to have_content 'runner-2'
- end
+ within '.runners-content .gl-responsive-table-row:nth-child(2)' do
+ expect(page).to have_content 'runner-2'
+ end
- within('tr:nth-child(2)') do
- expect(page).to have_content 'runner-1'
- end
+ within '.runners-content .gl-responsive-table-row:nth-child(3)' do
+ expect(page).to have_content 'runner-1'
end
sorting_by 'Last Contact'
- within '.runners-content tbody' do
- within('tr:nth-child(1)') do
- expect(page).to have_content 'runner-1'
- end
+ within '.runners-content .gl-responsive-table-row:nth-child(2)' do
+ expect(page).to have_content 'runner-1'
+ end
- within('tr:nth-child(2)') do
- expect(page).to have_content 'runner-2'
- end
+ within '.runners-content .gl-responsive-table-row:nth-child(3)' do
+ expect(page).to have_content 'runner-2'
end
end
end