From 956ed826a1ab1270906b8da24bef2cb4345c0214 Mon Sep 17 00:00:00 2001 From: vviekk Date: Thu, 23 Feb 2023 19:44:32 +0530 Subject: [PATCH] Adding test --- spec/system/consumer/registration_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/system/consumer/registration_spec.rb b/spec/system/consumer/registration_spec.rb index 17329c3169..7cd15f52ec 100644 --- a/spec/system/consumer/registration_spec.rb +++ b/spec/system/consumer/registration_spec.rb @@ -70,6 +70,10 @@ describe "Registration", js: true do expect(page).to have_content 'Last step to add My Awesome Enterprise!' # Choosing a type + click_button "Create Profile" + expect(page).to have_content("Please choose one. Are you are producer?") + expect(page).to have_button "Create Profile", disabled: false + click_link "producer-panel" expect(page).to have_selector '#producer-panel.selected'