We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3c7b07 + 3cad3b1 commit 30769bbCopy full SHA for 30769bb
packages/cypress/src/smartui.js
@@ -14,12 +14,11 @@ function smartuiSnapshot(name, options = {}) {
14
snapshot: name,
15
});
16
}
17
-
18
- if (!(await client.isSmartUIRunning())) {
19
- throw new Error('Cannot find SmartUI server.');
20
- }
21
22
- let resp = await client.fetchDOMSerializer();
+ let resp = await client.isSmartUIRunning()
+ if (!resp.body.cliVersion) throw new Error(`cannot find SmartUI server; ${JSON.stringify(resp)}`);
+
+ resp = await client.fetchDOMSerializer();
23
eval(resp.body.data.dom);
24
25
return cy.document({ log: false }).then({ timeout: CY_TIMEOUT }, dom => {
0 commit comments