Skip to content

Commit

Permalink
Updated opening hour fixture for tests, and added 'document' to non-t…
Browse files Browse the repository at this point in the history
…ext input detection
  • Loading branch information
fritzbrand committed Sep 4, 2024
1 parent 378b59d commit 08e8979
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion HelpCentre/QA/flows/agent-greeting.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ card GetPageContent, then: SendGreeting do
end
card SendGreeting when is_nil_or_empty(chat.assigned_to) do
substituted_msg = substitute(greeting_msg, "{operator_name}", "{a MomConnect operator}")
substituted_msg = substitute(greeting_msg, "{operator_name}", "a MomConnect operator")
text("@substituted_msg")
end
Expand Down
3 changes: 2 additions & 1 deletion HelpCentre/QA/flows/intro-to-helpcentre.md
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ card CheckInbound when num_inbound_attempts > 1 and helpdesk_open == true, then:
end
card CheckInbound
when user_question == "image" or user_question == "audio" or user_question == "video",
when user_question == "image" or user_question == "audio" or user_question == "video" or
user_question == "document",
then: NonTextDetected do
num_inbound_attempts = num_inbound_attempts + 1
log("Non text input found. Setting num_inbound_attempts = @num_inbound_attempts")
Expand Down
2 changes: 1 addition & 1 deletion HelpCentre/QA/flows_json/agent-greeting.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion HelpCentre/QA/flows_json/intro-to-helpcentre.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions HelpCentre/QA/tests/agent-greeting_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defmodule AgentGreetingTest do
defp set_config(step) do
step
|> FlowTester.set_global_dict("settings", %{
"working_hours_start_hour" => "6",
"working_hours_start_hour" => "5",
"working_hours_end_hour" => "19",
"working_hours_start_day" => "2",
"working_hours_end_day" => "6"
Expand Down Expand Up @@ -90,7 +90,7 @@ defmodule AgentGreetingTest do
test "get greeting for no agent assigned", %{flow: flow} do
FlowTester.start(flow)
|> receive_message(%{
text: "👨You are now chatting with {a MomConnect operator}" <> _
text: "👨You are now chatting with a MomConnect operator" <> _
})
end
end
2 changes: 1 addition & 1 deletion HelpCentre/QA/tests/agent-wrap-up_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ defmodule AgentWrapUpTest do
defp set_config(step) do
step
|> FlowTester.set_global_dict("settings", %{
"working_hours_start_hour" => "6",
"working_hours_start_hour" => "5",
"working_hours_end_hour" => "19",
"working_hours_start_day" => "2",
"working_hours_end_day" => "6"
Expand Down
2 changes: 1 addition & 1 deletion HelpCentre/QA/tests/intro-human-agent_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ defmodule IntroHumanAgentTest do
defp set_config(step) do
step
|> FlowTester.set_global_dict("settings", %{
"working_hours_start_hour" => "6",
"working_hours_start_hour" => "5",
"working_hours_end_hour" => "19",
"working_hours_start_day" => "2",
"working_hours_end_day" => "6"
Expand Down
2 changes: 1 addition & 1 deletion HelpCentre/QA/tests/intro-to-helpcentre_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ defmodule IntroToHelpCentreTest do
defp set_config_helpdesk_open(step) do
step
|> FlowTester.set_global_dict("settings", %{
"working_hours_start_hour" => "6",
"working_hours_start_hour" => "5",
"working_hours_end_hour" => "19",
"working_hours_start_day" => "2",
"working_hours_end_day" => "6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ defmodule ScheduledCallbackConfirmationTest do
defp set_config(step) do
step
|> FlowTester.set_global_dict("settings", %{
"working_hours_start_hour" => "6",
"working_hours_start_hour" => "5",
"working_hours_end_hour" => "19",
"working_hours_start_day" => "2",
"working_hours_end_day" => "6"
Expand Down
2 changes: 1 addition & 1 deletion HelpCentre/QA/tests/scheduled-callback-followup_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule ScheduledCallbackfollowupTest do
defp set_config(step) do
step
|> FlowTester.set_global_dict("settings", %{
"working_hours_start_hour" => "6",
"working_hours_start_hour" => "5",
"working_hours_end_hour" => "19",
"working_hours_start_day" => "2",
"working_hours_end_day" => "6"
Expand Down
2 changes: 1 addition & 1 deletion HelpCentre/QA/tests/scheduled-query-rating_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ defmodule ScheduledQueryRatingTest do
defp set_config(step) do
step
|> FlowTester.set_global_dict("settings", %{
"working_hours_start_hour" => "6",
"working_hours_start_hour" => "5",
"working_hours_end_hour" => "19",
"working_hours_start_day" => "2",
"working_hours_end_day" => "6"
Expand Down

0 comments on commit 08e8979

Please sign in to comment.