From 9fe128d494e5addbc3bce39fbb328ea7cc4d13aa Mon Sep 17 00:00:00 2001 From: EdwardLi-coder <2023edwardll@gmail.com> Date: Mon, 12 Aug 2024 16:04:22 +0800 Subject: [PATCH] add fail test --- spec/system/admin/products_v3/update_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/system/admin/products_v3/update_spec.rb b/spec/system/admin/products_v3/update_spec.rb index fec4236177..8537103d09 100644 --- a/spec/system/admin/products_v3/update_spec.rb +++ b/spec/system/admin/products_v3/update_spec.rb @@ -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]',