@trackunit/iris-app-e2e 1.8.49-alpha-3fb17ca5f15.0 → 1.8.51

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/index.cjs.js CHANGED
@@ -68,7 +68,7 @@ function setupDefaultCommands() {
68
68
  }).then(envResponse => {
69
69
  const env = envResponse.body;
70
70
  const domain = env.auth?.url;
71
- if (!domain) {
71
+ if (!(Boolean(domain))) {
72
72
  throw new Error(`No domain found from servers /env found env: ${JSON.stringify(env)}`);
73
73
  }
74
74
  cy.log(`Using: ${domain}`);
@@ -99,11 +99,10 @@ function setupDefaultCommands() {
99
99
  throw new Error(`Could not get a session token for user: ${username}, ${JSON.stringify(response)}`);
100
100
  }
101
101
  })
102
+ .then(() => cy.url({ timeout: 20000 }).should("not.include", "manager-classic")) // Wait for redirect away from manager-classic
102
103
  .url()
103
- .should("contain", `${Cypress.config().baseUrl}`)
104
- .should("contain", `/map`)
105
- .getByTestId("map-page", { timeout: 30000 })
106
- .should("be.visible");
104
+ .should("contain", `${Cypress.config().baseUrl}`);
105
+ cy.get("#host-layout-content", { timeout: 15000 }).should("be.visible"); // Wait for host layout to be visible
107
106
  });
108
107
  });
109
108
  });
package/index.esm.js CHANGED
@@ -48,7 +48,7 @@ function setupDefaultCommands() {
48
48
  }).then(envResponse => {
49
49
  const env = envResponse.body;
50
50
  const domain = env.auth?.url;
51
- if (!domain) {
51
+ if (!(Boolean(domain))) {
52
52
  throw new Error(`No domain found from servers /env found env: ${JSON.stringify(env)}`);
53
53
  }
54
54
  cy.log(`Using: ${domain}`);
@@ -79,11 +79,10 @@ function setupDefaultCommands() {
79
79
  throw new Error(`Could not get a session token for user: ${username}, ${JSON.stringify(response)}`);
80
80
  }
81
81
  })
82
+ .then(() => cy.url({ timeout: 20000 }).should("not.include", "manager-classic")) // Wait for redirect away from manager-classic
82
83
  .url()
83
- .should("contain", `${Cypress.config().baseUrl}`)
84
- .should("contain", `/map`)
85
- .getByTestId("map-page", { timeout: 30000 })
86
- .should("be.visible");
84
+ .should("contain", `${Cypress.config().baseUrl}`);
85
+ cy.get("#host-layout-content", { timeout: 15000 }).should("be.visible"); // Wait for host layout to be visible
87
86
  });
88
87
  });
89
88
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-e2e",
3
- "version": "1.8.49-alpha-3fb17ca5f15.0",
3
+ "version": "1.8.51",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "generators": "./generators.json",