From 68bceb2d2631ee9ea9be2111774f1d8486d24c2a Mon Sep 17 00:00:00 2001 From: Tim Habermaas Date: Tue, 1 Sep 2015 00:19:13 +0200 Subject: [PATCH] [WIP] fix attachment spec TODO: figure out why Firefox wants to download attachment instead of opening it. --- spec/features/attachments/attachments_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/attachments/attachments_spec.rb b/spec/features/attachments/attachments_spec.rb index 74356c99d7..378ab2146d 100644 --- a/spec/features/attachments/attachments_spec.rb +++ b/spec/features/attachments/attachments_spec.rb @@ -56,7 +56,7 @@ describe 'attachments', type: :feature do expect(page).to have_text('Successful creation.') expect(page).to have_text(file_name) - click_link file_name + find('.work-package--attachments--files', text: file_name).click expect(page).to have_text('some silly content') end