Commit 02d421c8 authored by Robert Speicher's avatar Robert Speicher

Fix logo upload feature steps

parent a1e47b70
...@@ -33,21 +33,21 @@ class Spinach::Features::AdminAppearance < Spinach::FeatureSteps ...@@ -33,21 +33,21 @@ class Spinach::Features::AdminAppearance < Spinach::FeatureSteps
end end
step 'I attach a logo' do step 'I attach a logo' do
attach_file(:appearance_logo, File.join(Rails.root, 'public', 'gitlab_logo.png')) attach_file(:appearance_logo, Rails.root.join('spec', 'fixtures', 'dk.png'))
click_button 'Save' click_button 'Save'
end end
step 'I attach header logos' do step 'I attach header logos' do
attach_file(:appearance_light_logo, File.join(Rails.root, 'public', 'header_logo_light.png')) attach_file(:appearance_light_logo, Rails.root.join('spec', 'fixtures', 'dk.png'))
click_button 'Save' click_button 'Save'
end end
step 'I should see a logo' do step 'I should see a logo' do
expect(page).to have_xpath('//img[@src="/uploads/appearance/logo/1/gitlab_logo.png"]') expect(page).to have_xpath('//img[@src="/uploads/appearance/logo/1/dk.png"]')
end end
step 'I should see header logos' do step 'I should see header logos' do
expect(page).to have_xpath('//img[@src="/uploads/appearance/light_logo/1/header_logo_light.png"]') expect(page).to have_xpath('//img[@src="/uploads/appearance/light_logo/1/dk.png"]')
end end
step 'I remove the logo' do step 'I remove the logo' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment