artes 1.0.9 → 1.0.10

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.
@@ -43,7 +43,7 @@ module.exports = {
43
43
  }, // Formatter options
44
44
 
45
45
  // Execution options
46
- parallel: artesConfig.parallel || 1, // Number of parallel workers
46
+ parallel: artesConfig.parallel || 0, // Number of parallel workers
47
47
  dryRun: artesConfig.dryRun || false, // Prepare test run without execution
48
48
  failFast: artesConfig.failFast || false, // Stop on first test failure
49
49
  forceExit: artesConfig.forceExit || false, // Force process.exit() after tests
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "The package provide step definitions and user writes feature files, and the package handles automation, with optional POM files and custom step definitions.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -39,20 +39,17 @@ Before(async function () {
39
39
  After(async function ({ pickle, result }) {
40
40
  let img;
41
41
 
42
- if (result?.status == Status.FAILED) {
42
+ if (result?.status != Status.PASSED) {
43
43
  img = await context.page.screenshot({
44
44
  path: `./test-results/visualReport/${pickle.name}/${pickle.name}.png`,
45
45
  type: "png",
46
46
  });
47
- }
48
-
49
- if (result?.status == Status.FAILED) {
50
- this.attach(img, "image/png");
47
+ await this.attach(img, "image/png");
51
48
  }
52
49
 
53
50
  await context.page.close();
54
51
  // await browser.tracing.stop({ path: 'trace.zip' });
55
- if (result?.status == Status.FAILED) {
52
+ if (result?.status != Status.PASSED) {
56
53
  const videoPath = await context.page.video().path();
57
54
  const webmBuffer = await fs.readFileSync(videoPath);
58
55
  await this.attach(webmBuffer, "video/webm");