@bigbinary/neeto-commons-frontend 2.0.79 → 2.0.81
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/cypress-commands.d.ts +6 -0
- package/cypress-configs/initializer.js +41 -0
- package/cypress-configs/plugins.js +63 -0
- package/cypress-configs/resolve.js +18 -0
- package/cypress-configs/webpack.config.js +19 -0
- package/cypress-utils.cjs.js +7 -3
- package/cypress-utils.cjs.js.map +1 -1
- package/cypress-utils.d.ts +1 -1
- package/cypress-utils.js +7 -3
- package/cypress-utils.js.map +1 -1
- package/package.json +5 -3
package/cypress-utils.d.ts
CHANGED
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
|
-
|
|
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.
|
|
1125
|
+
cy.getEmailContent({
|
|
1123
1126
|
sentTo: email,
|
|
1124
1127
|
subject: signUpTexts.loginCode
|
|
1125
1128
|
}).then(function (emailBody) {
|
|
@@ -1152,6 +1155,7 @@ var createOrganization = function createOrganization(_ref) {
|
|
|
1152
1155
|
cy.wait("@fetchCountries");
|
|
1153
1156
|
cy.clearAndType(signUpSelectors.firstNameTextField, firstName);
|
|
1154
1157
|
cy.clearAndType(signUpSelectors.lastNameTextField, lastName);
|
|
1158
|
+
cy.get(commonSelectors.checkbox).click();
|
|
1155
1159
|
cy.intercept({
|
|
1156
1160
|
url: requestApis.signUp,
|
|
1157
1161
|
times: 1
|
|
@@ -1224,7 +1228,7 @@ var verifyChatWithUsTab = function verifyChatWithUsTab() {
|
|
|
1224
1228
|
alias: "fetchChatWidget",
|
|
1225
1229
|
times: 4
|
|
1226
1230
|
});
|
|
1227
|
-
clickOnHelpSubTab(helpIconSelectors.chatButton, helpIconTexts.
|
|
1231
|
+
clickOnHelpSubTab(helpIconSelectors.chatButton, helpIconTexts.liveChat);
|
|
1228
1232
|
cy.waitForMultipleRequest("@fetchChatWidget", 4);
|
|
1229
1233
|
cy.get(helpIconSelectors.chatButton).click();
|
|
1230
1234
|
cy.withinIframe(chatWidgetSelectors.widgetIframe, function () {
|