|
|
@ -79,6 +79,12 @@ describe 'Accountable widget on my page', type: :feature, js: true do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it 'can add the widget and see the work packages the user is accountable for' do |
|
|
|
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 |
|
|
|
# Add widget below existing widgets |
|
|
|
my_page.add_widget(2, 2, :row, "Work packages I am accountable for") |
|
|
|
my_page.add_widget(2, 2, :row, "Work packages I am accountable for") |
|
|
|
|
|
|
|
|
|
|
|