attempt to stabilize flickering spec

pull/10296/head
ulferts 3 years ago
parent 285650e6c3
commit ed75447bf3
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 6
      modules/my_page/spec/features/my/accountable_spec.rb

@ -79,6 +79,12 @@ describe 'Accountable widget on my page', type: :feature, js: true do
end
it 'can add the widget and see the work packages the user is accountable for' do
# Added to ensure the page has finished loading.
# The page starts with a "wp created widget".
created_area = Components::Grids::GridArea.new('.grid--area.-widgeted:nth-of-type(2)')
expect(created_area.area)
.to have_selector('.subject', text: accountable_work_package.subject)
# Add widget below existing widgets
my_page.add_widget(2, 2, :row, "Work packages I am accountable for")

Loading…
Cancel
Save