testit-adapter-playwright 4.0.2-TMS-5.7 → 4.0.3

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.
Files changed (2) hide show
  1. package/dist/reporter.js +10 -1
  2. package/package.json +2 -2
package/dist/reporter.js CHANGED
@@ -128,7 +128,16 @@ class TmsReporter {
128
128
  for (const attachment of result.attachments) {
129
129
  if (!attachment.body) {
130
130
  if (attachment.path && attachment.name !== "screenshot") {
131
- const content = testit_js_commons_1.Utils.readBufferSync(attachment.path);
131
+ let content;
132
+ try {
133
+ content = testit_js_commons_1.Utils.readBufferSync(attachment.path);
134
+ }
135
+ catch (err) {
136
+ if (err?.code === "ENOENT") {
137
+ continue;
138
+ }
139
+ throw err;
140
+ }
132
141
  try {
133
142
  const ids = await this.additions.addAttachments(content, attachment.name);
134
143
  autotestData.addAttachments?.push(...ids);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testit-adapter-playwright",
3
- "version": "4.0.2-TMS-5.7",
3
+ "version": "4.0.3",
4
4
  "description": "Playwright adapter for Test IT",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -40,7 +40,7 @@
40
40
  "prettier": "^3.0.1"
41
41
  },
42
42
  "dependencies": {
43
- "testit-js-commons": "4.0.2-TMS-5.7"
43
+ "testit-js-commons": "4.0.3"
44
44
  },
45
45
  "files": [
46
46
  "dist"