Commit e8c952a9 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Find first td within the table before assertion

parent baba96bc
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
placeholder: admin_namespace_dropdown_label('Search groups'), idAttribute: 'id', data: { order_by: 'last_activity_at', idattribute: 'id', all_available: true} }) placeholder: admin_namespace_dropdown_label('Search groups'), idAttribute: 'id', data: { order_by: 'last_activity_at', idattribute: 'id', all_available: true} })
- if @events.present? - if @events.present?
%table.table %table#events-table.table
%thead %thead
%tr %tr
%th Author %th Author
......
...@@ -51,6 +51,8 @@ describe 'Admin::AuditLogs', feature: true, js: true do ...@@ -51,6 +51,8 @@ describe 'Admin::AuditLogs', feature: true, js: true do
wait_for_requests wait_for_requests
find('.select2-results').click find('.select2-results').click
find('#events-table td', match: :first)
expect(page).to have_content('Added user access as Owner') expect(page).to have_content('Added user access as Owner')
end end
end end
...@@ -73,6 +75,8 @@ describe 'Admin::AuditLogs', feature: true, js: true do ...@@ -73,6 +75,8 @@ describe 'Admin::AuditLogs', feature: true, js: true do
wait_for_requests wait_for_requests
find('.select2-results').click find('.select2-results').click
find('#events-table td', match: :first)
expect(page).to have_content('Removed user access') expect(page).to have_content('Removed user access')
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment