diff --git a/test/system/uploads_test.rb b/test/system/uploads_test.rb index 74e034c..aff23e2 100644 --- a/test/system/uploads_test.rb +++ b/test/system/uploads_test.rb @@ -2,7 +2,7 @@ require 'application_system_test_case' class UploadsTest < ApplicationSystemTestCase test 'upload broken screenshot anonymously and get error message' do - visit package_path(name: 'firefox') + visit package_path(name: 'package-1') click_on 'Upload a screenshot' # The actual file field is hidden in favor of a more beautiful button -> visible=false attach_file 'file[]', Rails.root.join('test/fixtures/files/large-broken.png'), visible: false @@ -11,7 +11,7 @@ class UploadsTest < ApplicationSystemTestCase end test 'upload png screenshot anonymously and await moderation' do - visit package_path(name: 'firefox') + visit package_path(name: 'package-1') img_count1 = page.find_all('img').count # Rails::logger.debug "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 1=#{img_count1}"