mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
Merge pull request #3133 from AndrewKvalheim/thead-tr
Correct invalid table markup
This commit is contained in:
commit
3aaf86076f
37 changed files with 330 additions and 291 deletions
|
|
@ -13,7 +13,7 @@ feature EventType do
|
|||
visit admin_conference_program_event_types_path(
|
||||
conference_id: conference.short_title)
|
||||
|
||||
within('table#event_types') do
|
||||
within('table#event_types > tbody') do
|
||||
expect(page.assert_selector('tr', count: 2)).to be true
|
||||
end
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ feature EventType do
|
|||
page.find('#flash')
|
||||
# Validations
|
||||
expect(flash).to eq('Event type successfully created.')
|
||||
within('table#event_types') do
|
||||
within('table#event_types > tbody') do
|
||||
expect(page.has_content?('Party')).to be true
|
||||
expect(page.has_content?('13042')).to be true
|
||||
expect(page.has_content?('#E4E4E4')).to be true
|
||||
|
|
@ -44,7 +44,7 @@ feature EventType do
|
|||
page.find('#flash')
|
||||
expect(flash).to eq('Event type successfully deleted.')
|
||||
|
||||
within('table#event_types') do
|
||||
within('table#event_types > tbody') do
|
||||
expect(page.assert_selector('tr', count: 2)).to be true
|
||||
expect(page.has_content?('Party')).to be false
|
||||
end
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ feature Role do
|
|||
scenario 'successfully removes role organization_admin' do
|
||||
click_link('Admins', href: admins_admin_organization_path(organization.id))
|
||||
|
||||
first('tr').find('.btn-danger').click
|
||||
first('tbody > tr').find('.btn-danger').click
|
||||
organization_admin.reload
|
||||
expect(organization_admin.has_cached_role?('organization_admin', organization)).to be false
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue