Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 28a8e52

Browse files
authoredMay 2, 2024
Merge pull request #41 from LambdaTest/stage
Cypress-driver release v1.0.8
2 parents 3ed41f5 + d7471bc commit 28a8e52

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
 

‎packages/cypress/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/cypress-driver",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "Cypress driver for all Lambdatest functionalities",
55
"main": "index.js",
66
"types": "types/index.d.ts",

‎packages/cypress/src/smartui.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ function smartuiSnapshot(name, options = {}) {
1414
snapshot: name,
1515
});
1616
}
17-
18-
if (!(await client.isSmartUIRunning())) {
19-
throw new Error('Cannot find SmartUI server.');
20-
}
2117

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();
2322
eval(resp.body.data.dom);
2423

2524
return cy.document({ log: false }).then({ timeout: CY_TIMEOUT }, dom => {

0 commit comments

Comments
 (0)
Please sign in to comment.