Skip to content

Commit d308ed0

Browse files
committed
Run one of the tests on EE only
1 parent e58517d commit d308ed0

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

test/plausible_web/controllers/stats_controller_test.exs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,14 @@ defmodule PlausibleWeb.StatsControllerTest do
155155
assert text_of_attr(resp, @react_container, "data-exploration-available") == "false"
156156
end
157157

158-
test "superadmin can see exploration funnel UI", %{conn: conn, site: site, user: user} do
159-
patch_env(:super_admin_user_ids, [user.id])
160-
populate_stats(site, [build(:pageview)])
161-
conn = get(conn, "/" <> site.domain)
162-
resp = html_response(conn, 200)
163-
assert text_of_attr(resp, @react_container, "data-exploration-available") == "true"
158+
on_ee do
159+
test "superadmin can see exploration funnel UI", %{conn: conn, site: site, user: user} do
160+
patch_env(:super_admin_user_ids, [user.id])
161+
populate_stats(site, [build(:pageview)])
162+
conn = get(conn, "/" <> site.domain)
163+
resp = html_response(conn, 200)
164+
assert text_of_attr(resp, @react_container, "data-exploration-available") == "true"
165+
end
164166
end
165167

166168
on_ee do

0 commit comments

Comments
 (0)