Maintenance: Stabilize test: capybara:chrome:2 Overviews conditions for shown tickets for organization.

This commit is contained in:
Rolf Schmidt 2022-03-04 10:33:07 +01:00
parent 032995eeef
commit 940e22db6d

View file

@ -317,7 +317,7 @@ RSpec.describe 'Manage > Overviews', type: :system do
within '.ticket_selector' do within '.ticket_selector' do
fill_in 'condition::ticket.organization_id::value_completion', with: organization_one.name fill_in 'condition::ticket.organization_id::value_completion', with: organization_one.name
find(".js-optionsList [data-value='#{organization_one.id}'].js-option").click find('.js-optionsList span', text: organization_one.name).click
end end
end end
@ -328,10 +328,10 @@ RSpec.describe 'Manage > Overviews', type: :system do
before do before do
within '.ticket_selector' do within '.ticket_selector' do
fill_in 'condition::ticket.organization_id::value_completion', with: organization_one.name fill_in 'condition::ticket.organization_id::value_completion', with: organization_one.name
find(".js-optionsList [data-value='#{organization_one.id}'].js-option").click find('.js-optionsList span', text: organization_one.name).click
fill_in 'condition::ticket.organization_id::value_completion', with: organization_two.name fill_in 'condition::ticket.organization_id::value_completion', with: organization_two.name
find(".js-optionsList [data-value='#{organization_two.id}'].js-option").click find('.js-optionsList span', text: organization_two.name).click
end end
end end