File tree
Expand file treeCollapse file tree1 file changed
+4
-5
lines changed Expand file treeCollapse file tree1 file changed
+4
-5
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -14,12 +14,11 @@ function smartuiSnapshot(name, options = {}) {
|
14 | 14 | snapshot: name,
|
15 | 15 | });
|
16 | 16 | }
|
17 |
| - |
18 |
| -if (!(await client.isSmartUIRunning())) { |
19 |
| -throw new Error('Cannot find SmartUI server.'); |
20 |
| -} |
21 | 17 |
|
22 |
| -let resp = await client.fetchDOMSerializer(); |
| 18 | +let resp = await client.isSmartUIRunning() |
| 19 | +if (!resp.body.cliVersion) throw new Error(`cannot find SmartUI server; ${JSON.stringify(resp)}`); |
| 20 | + |
| 21 | +resp = await client.fetchDOMSerializer(); |
23 | 22 | eval(resp.body.data.dom);
|
24 | 23 |
|
25 | 24 | return cy.document({ log: false }).then({ timeout: CY_TIMEOUT }, dom => {
|
|
You can’t perform that action at this time.
0 commit comments