fix resource last check flaky test
@@ -105,13 +105,14 @@ describe 'resource', type: :feature do
describe 'last checked timestamp' do
it 'shows last checked time' do
- visit dash_route
+ fly('check-resource -r pipeline/some-resource')
+ visit dash_route
page.find('a > text', text: 'some-resource').click
expect(page).to have_current_path("/teams/#{team_name}/pipelines/pipeline/resources/some-resource")
expect(page).to have_css('h1', text: 'some-resource')
- expect(page).to have_css('.last-checked', wait: 15)
+ expect(page).to have_css('.last-checked')
end
end
