@bigbinary/neeto-commons-frontend 2.1.38 → 2.1.39

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.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # neeto-commons-frontend
2
2
 
3
3
  A library that packages common boilerplate frontend code necessary for all neeto
4
- products. Try out the utility functions live at [neetoCommons REPL](https://neeto-cist.neeto.com/).
4
+ products.
5
5
 
6
6
  <table>
7
7
  <thead>
@@ -191,18 +191,6 @@ Object.defineProperty(requestApis, "allPath", {
191
191
  get: allPath
192
192
  });
193
193
 
194
- function _taggedTemplateLiteral(strings, raw) {
195
- if (!raw) {
196
- raw = strings.slice(0);
197
- }
198
- return Object.freeze(Object.defineProperties(strings, {
199
- raw: {
200
- value: Object.freeze(raw)
201
- }
202
- }));
203
- }
204
-
205
- var _templateObject;
206
194
  var commonSelectors = {
207
195
  alertTitle: dataCy("alert-title"),
208
196
  alertModalMessage: dataCy("alert-message"),
@@ -267,7 +255,7 @@ var commonSelectors = {
267
255
  subheader: dataCy("subheader"),
268
256
  settingsLink: dataCy("Settings"),
269
257
  nthInputField: function nthInputField(index) {
270
- return dataCy("nui-input-field"(_templateObject || (_templateObject = _taggedTemplateLiteral([":eq(", ")"])), index));
258
+ return dataCy("nui-input-field", ":eq(".concat(index, ")"));
271
259
  },
272
260
  ticketFieldTextInput: function ticketFieldTextInput(label) {
273
261
  return dataCy("".concat(hyphenize(label), "-text-input"));
@@ -686,7 +674,7 @@ var helpIconSelectors = {
686
674
  keyboardShortcutPaneCrossIcon: dataCy("keyboard-shortcuts-pane-close-button")
687
675
  };
688
676
  var chatWidgetSelectors = {
689
- chatWidgetHomeCard: ".neeto-chat-widget-home__card-content",
677
+ chatWidgetHomeCard: dataCy("neeto-chat-widget-cta-title"),
690
678
  widgetSubmitButton: dataCy("neeto-chat-widget-pre-chat-submit-btn"),
691
679
  chatBubbleMessage: dataCy("neeto-chat-widget-chat-message-bubble"),
692
680
  chatCloseButton: ".neeto-chat-widget-icon--close",
@@ -764,8 +752,6 @@ var helpIconTexts = {
764
752
  welcome: "Welcome",
765
753
  keyboardShortcuts: "Keyboard shortcuts",
766
754
  liveChat: "Live chat",
767
- newConversation: "New Conversation",
768
- chatMessage: "Hello. Go ahead and ask us anything.",
769
755
  whatsNew: "What's new"
770
756
  };
771
757
  var profileTexts = {
@@ -946,6 +932,7 @@ Object.defineProperty(fake, "streetAddress", {
946
932
  });
947
933
  fake.phoneNumber = phoneNumber;
948
934
 
935
+ /* eslint-disable xss/no-location-href-assign */
949
936
  var verifyTabMenu = function verifyTabMenu(_ref) {
950
937
  var tabSelector = _ref.tabSelector,
951
938
  _ref$alias = _ref.alias,
@@ -1037,7 +1024,9 @@ var verifyChatWithUsTab = function verifyChatWithUsTab(_ref3) {
1037
1024
  });
1038
1025
  cy.get(chatWidgetSelectors.chatWidgetHomeCard, {
1039
1026
  timeout: 10000
1040
- }).eq(0).should("have.text", helpIconTexts.newConversation).click();
1027
+ }).click({
1028
+ force: true
1029
+ });
1041
1030
  requestCount && cy.wait("@".concat(alias), requestCount);
1042
1031
  requestCount && cy.interceptNonVersionedApi({
1043
1032
  url: requestApis.allChatPath,
@@ -1046,7 +1035,7 @@ var verifyChatWithUsTab = function verifyChatWithUsTab(_ref3) {
1046
1035
  });
1047
1036
  cy.get(chatWidgetSelectors.widgetSubmitButton).click();
1048
1037
  requestCount && cy.waitForMultipleRequest("@".concat(alias), requestCount);
1049
- cy.get(chatWidgetSelectors.chatBubbleMessage).should("have.text", helpIconTexts.chatMessage);
1038
+ cy.get(chatWidgetSelectors.chatBubbleMessage).should("be.visible");
1050
1039
  });
1051
1040
  cy.get(chatWidgetSelectors.chatCloseButton).click();
1052
1041
  cy.get(chatWidgetSelectors.widgetIframe).should("not.exist");