@applitools/eyes-cypress 3.27.7 → 3.27.8

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
@@ -11,6 +11,12 @@
11
11
 
12
12
 
13
13
 
14
+ ## 3.27.8 - 2022/11/19
15
+
16
+ ### Features
17
+ ### Bug fixes
18
+ - Handle cases where cypress report showed tests pass when differences were found
19
+
14
20
  ## 3.27.7 - 2022/11/17
15
21
 
16
22
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-cypress",
3
- "version": "3.27.7",
3
+ "version": "3.27.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git://github.com/applitools/eyes.sdk.javascript1.git",
@@ -58,7 +58,7 @@ Cypress.Commands.add('eyesGetAllTestResults', () => {
58
58
  });
59
59
  });
60
60
 
61
- if (shouldUseBrowserHooks) {
61
+ if (shouldUseBrowserHooks || Cypress.config('eyesFailCypressOnDiff')) {
62
62
  after(() => {
63
63
  if (!manager) return;
64
64
  return cy.then({timeout: 86400000}, async () => {
@@ -72,6 +72,7 @@ if (shouldUseBrowserHooks) {
72
72
  isTextTerminal: Cypress.config('isTextTerminal'),
73
73
  tapDirPath: Cypress.config('appliConfFile').tapDirPath,
74
74
  tapFileName: Cypress.config('appliConfFile').tapFileName,
75
+ shouldCreateTapFile: shouldUseBrowserHooks,
75
76
  };
76
77
  await Promise.all(closePromiseArr);
77
78
  const summary = await socket.request('EyesManager.closeManager', {manager, throwErr});
@@ -10,11 +10,6 @@ function makeGlobalRunHooks({closeManager, closeBatches, closeUniversalServer})
10
10
  'after:run': async ({config}) => {
11
11
  try {
12
12
  if (!config.isTextTerminal) return;
13
- const resultConfig = {
14
- showLogs: config.showLogs,
15
- eyesFailCypressOnDiff: config.eyesFailCypressOnDiff,
16
- isTextTerminal: config.isTextTerminal,
17
- };
18
13
  const summaries = await closeManager();
19
14
 
20
15
  let testResults;
@@ -36,8 +31,6 @@ function makeGlobalRunHooks({closeManager, closeBatches, closeUniversalServer})
36
31
  tapFileName: config.appliConfFile.tapFileName,
37
32
  });
38
33
  }
39
-
40
- handleTestResults.printTestResults({testResults, resultConfig});
41
34
  } finally {
42
35
  await closeUniversalServer();
43
36
  }
@@ -84,7 +84,10 @@ function makeStartServer({logger}) {
84
84
  socketWithUniversal.send(newMessage);
85
85
  } else if (msg.name === 'Test.printTestResults') {
86
86
  try {
87
- if (msg.payload.resultConfig.tapDirPath) {
87
+ if (
88
+ msg.payload.resultConfig.tapDirPath &&
89
+ msg.payload.resultConfig.shouldCreateTapFile
90
+ ) {
88
91
  handleTestResults.handleBatchResultsFile(msg.payload.testResults, {
89
92
  tapFileName: msg.payload.resultConfig.tapFileName,
90
93
  tapDirPath: msg.payload.resultConfig.tapDirPath,