forked from plausible/analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement user notes in CRM and HelpScout integration (plausible#4611)
* Implement user notes in CRM and HelpScout integration * Update HS tests * Make slight markup and styling changes
- Loading branch information
Showing
5 changed files
with
28 additions
and
5 deletions.
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
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
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 |
---|---|---|
|
@@ -104,9 +104,9 @@ defmodule PlausibleWeb.HelpScoutControllerTest do | |
end | ||
end | ||
|
||
describe "shows/2" do | ||
describe "show/2" do | ||
test "returns details on success", %{conn: conn} do | ||
user = insert(:user, email: "[email protected]") | ||
user = insert(:user, email: "[email protected]", notes: "Some note\nwith new line") | ||
|
||
conn = | ||
conn | ||
|
@@ -115,7 +115,9 @@ defmodule PlausibleWeb.HelpScoutControllerTest do | |
"/helpscout/show?conversation_id=123&customer_id=500&[email protected]" | ||
) | ||
|
||
assert html_response(conn, 200) =~ "/crm/auth/user/#{user.id}" | ||
assert html = html_response(conn, 200) | ||
assert html =~ "/crm/auth/user/#{user.id}" | ||
assert html =~ "Some note<br>\nwith new line" | ||
end | ||
|
||
test "returns error when cookie is missing", %{conn: conn} do | ||
|