@applitools/eyes-cypress 3.26.4 → 3.26.5

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/CHANGELOG.md CHANGED
@@ -9,6 +9,12 @@
9
9
 
10
10
 
11
11
 
12
+ ## 3.26.5 - 2022/7/12
13
+
14
+ ### Features
15
+ ### Bug fixes
16
+ - Support string tag name in eyesCheck
17
+
12
18
  ## 3.26.4 - 2022/7/7
13
19
 
14
20
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-cypress",
3
- "version": "3.26.4",
3
+ "version": "3.26.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git://github.com/applitools/eyes.sdk.javascript1.git",
@@ -116,7 +116,6 @@ Cypress.Commands.add('eyesOpen', function(args = {}) {
116
116
  name: 'eyes.cypress',
117
117
  version: require('../../package.json').version,
118
118
  commands: Object.keys(spec).concat(['isSelector', 'isDriver', 'isElement']), // TODO fix spec.isSelector and spec.isDriver and spec.isElement in driver utils
119
- cwd: process.cwd(),
120
119
  });
121
120
 
122
121
  manager =
@@ -1,5 +1,8 @@
1
1
  /* global Node */
2
2
  function eyesCheckMapValues({args, refer}) {
3
+ if (typeof args === `string`) {
4
+ args = {tag: args};
5
+ }
3
6
  const config = args; // just did it for having less git changes at this moment
4
7
  const mappedValues = [
5
8
  'tag',
@@ -55,7 +55,17 @@ function makeStartServer({logger}) {
55
55
  socketWithClient.on('message', message => {
56
56
  const msg = JSON.parse(message);
57
57
  logger.log('==> ', message.toString().slice(0, 1000));
58
- if (msg.name === 'Test.printTestResults') {
58
+ if (msg.name === 'Core.makeSDK') {
59
+ const newMessage = Buffer.from(
60
+ JSON.stringify({
61
+ name: msg.name,
62
+ key: msg.key,
63
+ payload: Object.assign(msg.payload, {cwd: process.cwd()}),
64
+ }),
65
+ 'utf-8',
66
+ );
67
+ socketWithUniversal.send(newMessage);
68
+ } else if (msg.name === 'Test.printTestResults') {
59
69
  try {
60
70
  const resultArr = [];
61
71
  for (const result of msg.payload.testResults) {