@bigbinary/neeto-commons-frontend 2.1.0 → 2.1.2

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.
@@ -5,7 +5,7 @@ const defineCypressConfig = (overrides = {}) => {
5
5
 
6
6
  return defineConfig({
7
7
  execTimeout: 1800000,
8
- defaultCommandTimeout: 5000,
8
+ defaultCommandTimeout: 8000,
9
9
  requestTimeout: 5000,
10
10
  pageLoadTimeout: 30000,
11
11
  responseTimeout: 20000,
@@ -850,11 +850,14 @@ var verifyOrganizationTab = function verifyOrganizationTab() {
850
850
  });
851
851
  cy.get(profileSelectors.organizationSettingsButton).should("have.text", profileTexts.myOrganization);
852
852
  cy.globalState("subdomainName").then(function (subdomainName) {
853
- return cy.openInSameTabOnClick({
854
- url: requestApis.settingsPath(subdomainName),
855
- selector: profileSelectors.organizationSettingsButton,
856
- alias: "navigateToSettings"
853
+ cy.window().then(function (win) {
854
+ cy.stub(win, "open").as("navigateToSettings").callsFake(function (newUrl) {
855
+ return win.location.href = newUrl;
856
+ });
857
857
  });
858
+ cy.get(profileSelectors.organizationSettingsButton).invoke("click");
859
+ cy.get("@navigateToSettings").should("be.called");
860
+ cy.url().should("include", requestApis.settingsPath(subdomainName));
858
861
  });
859
862
  cy.get(commonSelectors.heading).should("have.text", commonTexts.settings);
860
863
  cy.globalState("subdomainName").then(function (subdomainName) {
@@ -1333,16 +1336,8 @@ var createOrganization = function createOrganization(_ref) {
1333
1336
  var defaultOtp = "123456";
1334
1337
  var appNameInLowerCase = appName.toLowerCase();
1335
1338
  var isNeetoAuth = appNameInLowerCase === "neetoauth";
1336
- if (isNeetoAuth) cy.visit("https://app.neetoauth.".concat(env.tld, "/signups/new"));else {
1337
- var startingUrl = "https://www.neeto.com/".concat(appNameInLowerCase).concat(env.isStaging ? "?env=staging" : "");
1338
- cy.visit(startingUrl);
1339
- if (isStagingEnv) {
1340
- cy.get(signUpSelectors.tryFreeButton, {
1341
- timeout: 10000
1342
- }).should("have.attr", "href").and("include", "https://app.neetoauth.net/");
1343
- }
1344
- cy.get(signUpSelectors.tryFreeButton).invoke("removeAttr", "target").click();
1345
- }
1339
+ var authUrl = "https://app.neetoauth.".concat(env.tld, "/signups/new");
1340
+ isNeetoAuth ? cy.visit(authUrl) : cy.visit("".concat(authUrl, "?redirect_uri=").concat(appNameInLowerCase, ".").concat(env.tld));
1346
1341
  cy.clearAndType(signUpSelectors.emailTextField, email);
1347
1342
  cy.intercept({
1348
1343
  url: requestApis.signUp,