From 05cebe1145de2e148dace6231d203ad9a7775c97 Mon Sep 17 00:00:00 2001 From: Caslav Sunjka Date: Thu, 22 Aug 2024 13:40:11 +0200 Subject: [PATCH] test(e2e):SocketIO connection is reconnected after more then 5s widget is closed --- e2e/RasaChatbotWidgetTestCases.xlsx | Bin 477498 -> 480076 bytes e2e/cypress/pageObjects/chatbotWidgetPOM.ts | 4 ++ e2e/cypress/tests/miscTestCases.cy.ts | 71 ++++++++++++++++++++ 3 files changed, 75 insertions(+) diff --git a/e2e/RasaChatbotWidgetTestCases.xlsx b/e2e/RasaChatbotWidgetTestCases.xlsx index ed0c3d9859738e45d9b97e2eeca3cde08f93d33c..6fefd3453730a30597c5929f52dd1ff96e8b6c56 100644 GIT binary patch delta 13166 zcmZvC1yt1C_Vx@lG}7G&NFzvhHwcJyry$)mk^<5-gmg$N-JQ}QC5?2efJlDB;Ct_P zegD4&v-Wzzt-|^5H^qA~i*L1U$g~w{A8Q zLso@Ah}A_%N|+e;6qj@meHR=65LOMuF9d@7o2_}ZtTATBI@gG5$~wEUnp`?8mdTGR z<#r$~or-+qk7WtJNEx>`vFD)GtZm!i&9ewsEnTngRT}RF79(N_pNu17vGSdFRH8+* z@_p|JM^jNwxI2d0ciL7;4kj?c4sPa4V zgX&yX6EO8>0$!7!>Bt()JYNvltB!6e%dIUX9ZAg?XY6WQM>aMMpW9^}TdJ_+}) z3-Z04SZ+T#$z|6z5Mnx56a1O23`Pg@C~R!Z8gSn{?Ry$RL_L;(H%}J%<;x~Rgcy@`LdZOm z(ged0i>hzf@)j1@yK+zx{Mn$58Zf0>dTPah%KbpVzeRg{3=Jl0Q6f8Q~i1Z!_zQ#Rs zkD!;Wv?2ad`K+g*)3@)U$JhIP&^I6r~h*Wh0If(!`7yNm8v7g+yz&n0=;v!jZ>wP0r)g3-1t|>~8{r1BtG_}@0 zw&r;gGB5QYxAFVW3#`W6!HbG*g)B~mB;nxccf}R7_P@AR3A`i6{G2{3LZ#KiiaAQLFZJy@)W_?06S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c{&Nd+vsB+8V84DJAbn~eI(W@?)u2Ny?HmX}RR__+HEin8 z8tth;l+%hVQ07UX{lyoX&8j6Bn%DDzK z(4XTFV$EB{eNCt$mjhz>TM-CT05QG4QT!VaT5S*| TmNGyYpai|gTHu3D)`0&5BZW=1 diff --git a/e2e/cypress/pageObjects/chatbotWidgetPOM.ts b/e2e/cypress/pageObjects/chatbotWidgetPOM.ts index 14389c5..8a95b60 100644 --- a/e2e/cypress/pageObjects/chatbotWidgetPOM.ts +++ b/e2e/cypress/pageObjects/chatbotWidgetPOM.ts @@ -19,6 +19,10 @@ class ChatbotWidget { return cy.get('div.rasa-chatbot-widget__launcher'); } + get widgetCloseButton() { + return cy.get('rasa-icon-close-chat'); + } + get widgetLauncherImage() { return cy.get('img.rasa-chatbot-widget__launcher-image'); } diff --git a/e2e/cypress/tests/miscTestCases.cy.ts b/e2e/cypress/tests/miscTestCases.cy.ts index 280f345..dd16709 100644 --- a/e2e/cypress/tests/miscTestCases.cy.ts +++ b/e2e/cypress/tests/miscTestCases.cy.ts @@ -1,3 +1,4 @@ +import { userInputs } from '@rasa-cypress-fixtures/chatbotWidgetData'; import { chatbotWidgetPage } from '@rasa-cypress-POM/chatbotWidgetPOM'; import { generateMixedString } from '@rasa-cypress-utils/utils'; import { invoke } from 'cypress/types/lodash'; @@ -47,4 +48,74 @@ describe('Miscellaneous test cases for Rasa Chat Widget', () => { expect(text.length).to.eq(500); }); }); + + it('TC022 - Widget reconnects SocketIO session after being closed more then 5s', () => { + chatbotWidgetPage.widgetLauncher.should('be.visible'); + + chatbotWidgetPage.widgetLauncher.click(); + + chatbotWidgetPage.widgetOpened.should('be.visible'); + + chatbotWidgetPage.widgetHeader.should('be.visible'); + + chatbotWidgetPage.widgetHeader + .get('span') + .should('contain.text', 'Rasa Widget'); + + chatbotWidgetPage.widgetInputField.should('be.visible'); + + chatbotWidgetPage.widgetSendButton.should('be.visible'); + + chatbotWidgetPage.widgetSessionDivider.should('be.visible'); + + chatbotWidgetPage.widgetSessionDivider.should('have.length', 1); + + cy.userSendMessage(userInputs.textMessage); + + cy.checkUserMessageIsSent(userInputs.textMessage); + + chatbotWidgetPage.botChatTextMessage.should('be.visible'); + + chatbotWidgetPage.botChatTextMessage + .get('span') + .should( + 'contain.text', + "I understand you want to be connected to a human agent, but that's something I cannot help you with at the moment. Is there something else I can help you with?" + ); + + chatbotWidgetPage.widgetCloseButton.should('be.visible'); + + chatbotWidgetPage.widgetCloseButton.click(); + + chatbotWidgetPage.widgetOpened.should('not.exist'); + + chatbotWidgetPage.widgetLauncher.should('be.visible'); + + cy.wait(5000); + + chatbotWidgetPage.widgetLauncher.click(); + + chatbotWidgetPage.widgetOpened.should('be.visible'); + + chatbotWidgetPage.widgetHeader.should('be.visible'); + + chatbotWidgetPage.widgetInputField.should('be.visible'); + + chatbotWidgetPage.widgetSendButton.should('be.visible'); + + cy.checkUserMessageIsSent(userInputs.textMessage); + + chatbotWidgetPage.botChatTextMessage.should('be.visible'); + + chatbotWidgetPage.botChatTextMessage + .get('span') + .should( + 'contain.text', + "I understand you want to be connected to a human agent, but that's something I cannot help you with at the moment. Is there something else I can help you with?" + ); + + chatbotWidgetPage.widgetSessionDivider.should('be.visible'); + + chatbotWidgetPage.widgetSessionDivider.should('have.length', 2); + }); });