From 940e22db6d3708f1d3df1d2a62dcd627351785cc Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Fri, 4 Mar 2022 10:33:07 +0100 Subject: [PATCH] Maintenance: Stabilize test: capybara:chrome:2 Overviews conditions for shown tickets for organization. --- spec/system/manage/overviews_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/system/manage/overviews_spec.rb b/spec/system/manage/overviews_spec.rb index caba4d0c8..a29d93110 100644 --- a/spec/system/manage/overviews_spec.rb +++ b/spec/system/manage/overviews_spec.rb @@ -317,7 +317,7 @@ RSpec.describe 'Manage > Overviews', type: :system do within '.ticket_selector' do 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 @@ -328,10 +328,10 @@ RSpec.describe 'Manage > Overviews', type: :system do before do within '.ticket_selector' do 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 - find(".js-optionsList [data-value='#{organization_two.id}'].js-option").click + find('.js-optionsList span', text: organization_two.name).click end end