Maintenance: Improve overview test to show ticket list by scroll better and added wait to stabilize results.
This commit is contained in:
parent
5867cf392c
commit
d3ca97a95d
1 changed files with 10 additions and 0 deletions
|
@ -44,6 +44,11 @@ RSpec.describe 'Manage > Overviews', type: :system do
|
|||
let(:overview) { create(:overview, condition: condition) }
|
||||
|
||||
shared_examples 'previewing the correct ticket for single selected object' do
|
||||
before do
|
||||
wait.until { page.has_css?('.js-previewLoader.hide', visible: :all) }
|
||||
scroll_into_view('.ticket_selector')
|
||||
end
|
||||
|
||||
context "with 'is' operator" do
|
||||
let(:operator) { 'is' }
|
||||
|
||||
|
@ -80,6 +85,11 @@ RSpec.describe 'Manage > Overviews', type: :system do
|
|||
end
|
||||
|
||||
shared_examples 'previewing the correct ticket for multiple selected objects' do
|
||||
before do
|
||||
wait.until { page.has_css?('.js-previewLoader.hide', visible: :all) }
|
||||
scroll_into_view('.ticket_selector')
|
||||
end
|
||||
|
||||
context "with 'is' operator" do
|
||||
let(:operator) { 'is' }
|
||||
|
||||
|
|
Loading…
Reference in a new issue