Thank you for your contribution. Before submitting this PR, please include:
Id of the task, bug, story or other reference
Task: #4329297
Description
Fix Playwright Integrations Tests
Tests were running "too fast"
Calling ChatSDK.startChat() then ChatSDK.endChat() too quickly would cause failures on sessionclose given that the LiveWorkItem may not be fully created and available to be retrieved from the DB
Solution Proposed
Added a configurable setting chatDuration to mimic the scenario of a normal person chatting would resolve the issue
Acceptance criteria
Integration tests should be more reliable
Test cases and evidence
Ran the integration tests with 100% success rate
Sanity Tests
[ ] You have tested all changes in Popout mode
[ ] You have tested all changes in cross browsers i.e Edge, Chrome, Firefox, Safari and mobile devices(iOS and Android)
PR Details
Thank you for your contribution. Before submitting this PR, please include:
Id of the task, bug, story or other reference
Task: #4329297
Description
ChatSDK.startChat()
thenChatSDK.endChat()
too quickly would cause failures onsessionclose
given that theLiveWorkItem
may not be fully created and available to be retrieved from the DBSolution Proposed
Added a configurable setting
chatDuration
to mimic the scenario of a normal person chatting would resolve the issueAcceptance criteria
Integration tests should be more reliable
Test cases and evidence
Sanity Tests
A11y
Please provide justification if any of the validations has been skipped.