feat: add open button to join link in settings
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
0159d5352a
commit
d0d7d38c03
5 changed files with 44 additions and 1 deletions
|
|
@ -64,6 +64,21 @@ defmodule MvWeb.GlobalSettingsLiveTest do
|
|||
|
||||
assert html =~ "must be present"
|
||||
end
|
||||
|
||||
test "shows open button for join page URL in same row as copy", %{conn: conn} do
|
||||
{:ok, settings} = Membership.get_settings()
|
||||
{:ok, _} = Membership.update_settings(settings, %{join_form_enabled: true})
|
||||
|
||||
{:ok, view, _html} = live(conn, ~p"/settings")
|
||||
|
||||
assert has_element?(view, "#copy-join-url-btn")
|
||||
|
||||
assert has_element?(
|
||||
view,
|
||||
"a[href][target=\"_blank\"][rel=\"noopener noreferrer\"]",
|
||||
"Open"
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
describe "SMTP / E-Mail section" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue