@bigbinary/neeto-commons-frontend 2.1.1 → 2.1.3

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-utils.js CHANGED
@@ -1328,16 +1328,8 @@ var createOrganization = function createOrganization(_ref) {
1328
1328
  var defaultOtp = "123456";
1329
1329
  var appNameInLowerCase = appName.toLowerCase();
1330
1330
  var isNeetoAuth = appNameInLowerCase === "neetoauth";
1331
- if (isNeetoAuth) cy.visit("https://app.neetoauth.".concat(env.tld, "/signups/new"));else {
1332
- var startingUrl = "https://www.neeto.com/".concat(appNameInLowerCase).concat(env.isStaging ? "?env=staging" : "");
1333
- cy.visit(startingUrl);
1334
- if (isStagingEnv) {
1335
- cy.get(signUpSelectors.tryFreeButton, {
1336
- timeout: 10000
1337
- }).should("have.attr", "href").and("include", "https://app.neetoauth.net/");
1338
- }
1339
- cy.get(signUpSelectors.tryFreeButton).invoke("removeAttr", "target").click();
1340
- }
1331
+ var authUrl = "https://app.neetoauth.".concat(env.tld, "/signups/new");
1332
+ isNeetoAuth ? cy.visit(authUrl) : cy.visit("".concat(authUrl, "?redirect_uri=").concat(appNameInLowerCase, ".").concat(env.tld));
1341
1333
  cy.clearAndType(signUpSelectors.emailTextField, email);
1342
1334
  cy.intercept({
1343
1335
  url: requestApis.signUp,