@bigbinary/neeto-commons-frontend 2.0.78 → 2.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -201,7 +201,7 @@ type HelpIconTexts = {
201
201
  documentation: string;
202
202
  welcome: string;
203
203
  keyboardShortcuts: string;
204
- chatWithUs: string;
204
+ liveChat: string;
205
205
  newConversation: string;
206
206
  chatMessage: string;
207
207
  whatsNew: string;
package/cypress-utils.js CHANGED
@@ -506,6 +506,9 @@ var initCustomCommands = function initCustomCommands() {
506
506
  });
507
507
  cy.document().its("body").find(commonSelectors.tooltip).should("not.exist");
508
508
  });
509
+ Cypress.Commands.add("getEmailContent", function (props) {
510
+ return cy.mailosaurGetMessage(Cypress.env("MAILOSAUR_SERVER_ID"), props);
511
+ });
509
512
  };
510
513
 
511
514
  var loginSelectors = {
@@ -667,7 +670,7 @@ var helpIconTexts = {
667
670
  documentation: "Documentation",
668
671
  welcome: "Welcome",
669
672
  keyboardShortcuts: "Keyboard shortcuts",
670
- chatWithUs: "Chat with us",
673
+ liveChat: "Live chat",
671
674
  newConversation: "New Conversation",
672
675
  chatMessage: "Hello. Go ahead and ask us anything.",
673
676
  whatsNew: "What's new"
@@ -1119,7 +1122,7 @@ var createOrganization = function createOrganization(_ref) {
1119
1122
  cy.get(signUpSelectors.submitButton).click();
1120
1123
  cy.wait("@signupRequest");
1121
1124
  if (isMailosaurEmail) {
1122
- cy.mailosaurGetMessage(Cypress.env("serverId"), {
1125
+ cy.getEmailContent({
1123
1126
  sentTo: email,
1124
1127
  subject: signUpTexts.loginCode
1125
1128
  }).then(function (emailBody) {
@@ -1224,7 +1227,7 @@ var verifyChatWithUsTab = function verifyChatWithUsTab() {
1224
1227
  alias: "fetchChatWidget",
1225
1228
  times: 4
1226
1229
  });
1227
- clickOnHelpSubTab(helpIconSelectors.chatButton, helpIconTexts.chatWithUs);
1230
+ clickOnHelpSubTab(helpIconSelectors.chatButton, helpIconTexts.liveChat);
1228
1231
  cy.waitForMultipleRequest("@fetchChatWidget", 4);
1229
1232
  cy.get(helpIconSelectors.chatButton).click();
1230
1233
  cy.withinIframe(chatWidgetSelectors.widgetIframe, function () {