From 08e597c29fcf86dc6eb51b1aaa94e93d940d7dda Mon Sep 17 00:00:00 2001 From: Aleksander Nicacio da Silva Date: Tue, 12 Dec 2023 13:49:58 -0300 Subject: [PATCH] chore: improved agents e2e tests (#31196) * chore: added qa ids * chore: refactored agents e2e tests --- .../views/omnichannel/agents/AgentEdit.tsx | 20 ++-- .../views/omnichannel/agents/AgentInfo.tsx | 2 +- .../omnichannel/agents/AgentInfoAction.tsx | 2 +- .../agents/AgentsTable/AgentsTable.tsx | 2 +- .../agents/AgentsTable/AgentsTableRow.tsx | 2 +- .../agents/hooks/useRemoveAgent.tsx | 10 +- .../omnichannel/omnichannel-agents.spec.ts | 98 +++++++++++++++---- .../e2e/page-objects/omnichannel-agents.ts | 59 +++++++++-- 8 files changed, 155 insertions(+), 40 deletions(-) diff --git a/apps/meteor/client/views/omnichannel/agents/AgentEdit.tsx b/apps/meteor/client/views/omnichannel/agents/AgentEdit.tsx index e23baf346f7ff..afe7b162ea0b0 100644 --- a/apps/meteor/client/views/omnichannel/agents/AgentEdit.tsx +++ b/apps/meteor/client/views/omnichannel/agents/AgentEdit.tsx @@ -112,7 +112,7 @@ const AgentEdit = ({ agentData, userDepartments, availableDepartments }: AgentEd const voipExtensionField = useUniqueId(); return ( - + {t('Edit_User')} router.navigate('/omnichannel/agents')} /> @@ -122,7 +122,7 @@ const AgentEdit = ({ agentData, userDepartments, availableDepartments }: AgentEd
{username && ( - + )} @@ -132,7 +132,7 @@ const AgentEdit = ({ agentData, userDepartments, availableDepartments }: AgentEd } + render={({ field }) => } /> @@ -145,7 +145,7 @@ const AgentEdit = ({ agentData, userDepartments, availableDepartments }: AgentEd render={({ field }) => ( } @@ -163,7 +163,7 @@ const AgentEdit = ({ agentData, userDepartments, availableDepartments }: AgentEd render={({ field }) => ( } @@ -181,7 +181,7 @@ const AgentEdit = ({ agentData, userDepartments, availableDepartments }: AgentEd render={({ field }) => ( (