diff options
author | Roman Chvanikov <chvanikoff@pm.me> | 2020-07-19 21:59:32 +0300 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@pm.me> | 2020-07-19 21:59:32 +0300 |
commit | 42c539b4ca6881746d0e4c3574c1955c6e806ae5 (patch) | |
tree | 2b0df76db19ed6101fb285ca275b2c6b9c7bfb86 /test | |
parent | 0b19a7213c2b5e8d23e8b8192ec6f22eef48f78e (diff) | |
download | pleroma-42c539b4ca6881746d0e4c3574c1955c6e806ae5.tar.gz |
refactor frontend task
Diffstat (limited to 'test')
-rw-r--r-- | test/tasks/frontend_test.exs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/tasks/frontend_test.exs b/test/tasks/frontend_test.exs index fcd07150f..55193df67 100644 --- a/test/tasks/frontend_test.exs +++ b/test/tasks/frontend_test.exs @@ -70,4 +70,22 @@ defmodule Mix.Tasks.Pleroma.FrontendTest do refute File.exists?("#{@dir}/frontends/mastodon/__local__/unused_dir") end end + + test "Installation from web, pre-built packages" do + frontends = ~w(pleroma kenoma mastodon admin) + refs = ~w(develop stable 1.2.3) + + Enum.each(frontends, fn frontend -> + Enum.each(refs, fn ref -> + Mix.Tasks.Pleroma.Frontend.run([ + "install", + frontend, + "--ref", + ref + ]) + + assert File.exists?(Path.join([@dir, "frontends/#{frontend}/#{ref}/index.html"])) + end) + end) + end end |