File tree Expand file tree Collapse file tree
test/plausible_web/controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -977,23 +977,25 @@ defmodule PlausibleWeb.SiteControllerTest do
977977 insert ( :spike_notification , site: site )
978978 insert ( :drop_notification , site: site )
979979
980- { :ok , g1 } = Plausible.Goals . create ( site , % { "page_path" => "/go/to/blog/**" } )
981- { :ok , g2 } = Plausible.Goals . create ( site , % { "event_name" => "Signup" } )
982- { :ok , [ g1 , g2 ] }
983-
984- { :ok , _ } =
985- Plausible.Funnels . create (
986- site ,
987- "funnel1" ,
988- [ % { "goal_id" => g1 . id } , % { "goal_id" => g2 . id } ]
989- )
980+ on_ee do
981+ { :ok , g1 } = Plausible.Goals . create ( site , % { "page_path" => "/go/to/blog/**" } )
982+ { :ok , g2 } = Plausible.Goals . create ( site , % { "event_name" => "Signup" } )
983+ { :ok , [ g1 , g2 ] }
984+
985+ { :ok , _ } =
986+ Plausible.Funnels . create (
987+ site ,
988+ "funnel1" ,
989+ [ % { "goal_id" => g1 . id } , % { "goal_id" => g2 . id } ]
990+ )
990991
991- { :ok , _ } =
992- Plausible.Funnels . create (
993- site ,
994- "funnel2" ,
995- [ % { "goal_id" => g2 . id } , % { "goal_id" => g1 . id } ]
996- )
992+ { :ok , _ } =
993+ Plausible.Funnels . create (
994+ site ,
995+ "funnel2" ,
996+ [ % { "goal_id" => g2 . id } , % { "goal_id" => g1 . id } ]
997+ )
998+ end
997999
9981000 delete ( conn , "/#{ site . domain } " )
9991001
You can’t perform that action at this time.
0 commit comments