Filtering investments are based on the latest milestone status

This commit is contained in:
Angel Perez
2018-07-12 22:01:26 -04:00
committed by Javi Martín
parent 749954267d
commit a3ef662509
2 changed files with 11 additions and 2 deletions

View File

@@ -138,7 +138,7 @@ feature 'Executions' do
expect(page).not_to have_content(investment2.title)
end
xscenario 'are based on latest milestone status', :js do
scenario 'are based on latest milestone status', :js do
create(:budget_investment_milestone, investment: investment1,
publication_date: Date.yesterday,
status: status1)
@@ -157,10 +157,12 @@ feature 'Executions' do
select 'Studying the project', from: 'status'
expect(page).not_to have_content(investment1.title)
expect(page).to have_content('No winner investments for this heading')
select 'Bidding', from: 'status'
expect(page).to have_content(investment1.title)
expect(page).not_to have_content('No winner investments for this heading')
end
end