add fail test

This commit is contained in:
EdwardLi-coder
2024-08-12 16:04:22 +08:00
parent be13d43e0c
commit 9fe128d494

View File

@@ -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]',