From 7eee6cd2d5c66d543fcc14e9a87b8b6b411d0794 Mon Sep 17 00:00:00 2001 From: Alexis Reigel Date: Tue, 17 Jul 2018 09:59:45 +0200 Subject: convert admin runners table to responsive table --- spec/features/admin/admin_runners_spec.rb | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'spec') 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 -- cgit v1.2.1