mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
add fail test
This commit is contained in:
@@ -682,6 +682,12 @@ RSpec.describe 'As an enterprise user, I can update my products' do
|
||||
end
|
||||
end
|
||||
|
||||
it "fails intentionally to generate screenshot" do
|
||||
within ".reveal-modal" do
|
||||
expect(page).to have_content "This text does not exist"
|
||||
end
|
||||
end
|
||||
|
||||
it 'shows a modal telling not a valid image when uploading a non valid image file' do
|
||||
within ".reveal-modal" do
|
||||
attach_file 'image[attachment]',
|
||||
|
||||
Reference in New Issue
Block a user