-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Account for pending site transfers in Settings > People list
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -552,6 +552,19 @@ defmodule PlausibleWeb.SiteControllerTest do | |
assert text_of_element(resp, "#invitation-#{i2.invitation_id}") == | ||
"[email protected] Viewer" | ||
end | ||
|
||
test "lists pending site transfer", %{conn: conn, user: user} do | ||
site = new_site(owner: user) | ||
new_owner = new_user() | ||
|
||
st = invite_transfer(site, new_owner, inviter: user) | ||
|
||
conn = get(conn, "/#{site.domain}/settings/people") | ||
resp = html_response(conn, 200) | ||
|
||
assert text_of_element(resp, "#invitation-#{st.invitation_id}") == | ||
"#{new_owner.email} Owner" | ||
end | ||
end | ||
|
||
describe "GET /:domain/settings/goals" do | ||
|