Follow up - dc3f5dde1b - Fixes #3414 - Click on time part of date time element in the test is pointing to the date part in some browsers/OS and therefore fails on CI.

This commit is contained in:
Mantas Masalskis 2021-03-03 07:27:06 +00:00 committed by Thorsten Eckel
parent 050315bac9
commit 6457ca5430

View file

@ -1309,14 +1309,14 @@ RSpec.describe 'Ticket zoom', type: :system do
context 'when clicking timepicker component' do context 'when clicking timepicker component' do
it 'in the first half, hours selected' do it 'in the first half, hours selected' do
within :active_content do within :active_content do
elem.click({ x: 10, y: 10 }) elem.click({ x: 10, y: 20 })
expect(elem).to have_selection(0..2) expect(elem).to have_selection(0..2)
end end
end end
it 'in the second half, minutes selected' do it 'in the second half, minutes selected' do
within :active_content do within :active_content do
elem.click({ x: 30, y: 10 }) elem.click({ x: 35, y: 20 })
expect(elem).to have_selection(3..5) expect(elem).to have_selection(3..5)
end end
end end