run upload tests on a package with no screenshots
This commit is contained in:
parent
2f9f22e9dc
commit
c0b25fee99
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ require 'application_system_test_case'
|
||||||
|
|
||||||
class UploadsTest < ApplicationSystemTestCase
|
class UploadsTest < ApplicationSystemTestCase
|
||||||
test 'upload broken screenshot anonymously and get error message' do
|
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'
|
click_on 'Upload a screenshot'
|
||||||
# The actual file field is hidden in favor of a more beautiful button -> visible=false
|
# 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
|
attach_file 'file[]', Rails.root.join('test/fixtures/files/large-broken.png'), visible: false
|
||||||
|
|
@ -11,7 +11,7 @@ class UploadsTest < ApplicationSystemTestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'upload png screenshot anonymously and await moderation' do
|
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
|
img_count1 = page.find_all('img').count
|
||||||
# Rails::logger.debug "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 1=#{img_count1}"
|
# Rails::logger.debug "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 1=#{img_count1}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue