Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

allure-playwright

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-playwright - npm Package Compare versions

Comparing version 3.0.0-beta.1 to 3.0.0-beta.2

34

dist/cjs/index.js

@@ -312,15 +312,9 @@ "use strict";

if (result.stdout.length > 0) {
this.allureRuntime.writeAttachment({
name: "stdout",
contentType: _allureJsCommons.ContentType.TEXT,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
content: Buffer.from((0, _sdk.stripAnsi)(result.stdout.join("")), "utf8")
this.allureRuntime.writeAttachment("stdout", Buffer.from((0, _sdk.stripAnsi)(result.stdout.join("")), "utf-8"), {
contentType: _allureJsCommons.ContentType.TEXT
}, testUuid);
}
if (result.stderr.length > 0) {
this.allureRuntime.writeAttachment({
name: "stderr",
contentType: _allureJsCommons.ContentType.TEXT,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
content: Buffer.from((0, _sdk.stripAnsi)(result.stderr.join("")), "utf8")
this.allureRuntime.writeAttachment("stderr", Buffer.from((0, _sdk.stripAnsi)(result.stderr.join("")), "utf-8"), {
contentType: _allureJsCommons.ContentType.TEXT
}, testUuid);

@@ -490,6 +484,4 @@ }

}
this.allureRuntime.writeAttachment({
name: attachment.name,
contentType: attachment.contentType,
content: attachment.body
this.allureRuntime.writeAttachment(attachment.name, attachment.body, {
contentType: attachment.contentType
}, testUuid);

@@ -535,10 +527,8 @@ _context4.next = 19;

diffName = attachment.name.replace(diffEndRegexp, "");
this.allureRuntime.writeAttachment({
name: diffName,
content: JSON.stringify({
expected: expectedBase64,
actual: actualBase64,
diff: diffBase64,
name: diffName
}),
this.allureRuntime.writeAttachment(diffName, Buffer.from(JSON.stringify({
expected: expectedBase64,
actual: actualBase64,
diff: diffBase64,
name: diffName
}), "utf-8"), {
contentType: _allureJsCommons.ContentType.IMAGEDIFF,

@@ -545,0 +535,0 @@ fileExtension: ".imagediff"

@@ -23,3 +23,3 @@ "use strict";

label: function label() {
return allure.label.apply(allure, arguments);
return Promise.resolve(allure.label.apply(allure, arguments));
},

@@ -30,3 +30,3 @@ /**

labels: function labels() {
return allure.labels.apply(allure, arguments);
return Promise.resolve(allure.labels.apply(allure, arguments));
},

@@ -37,3 +37,3 @@ /**

link: function link(type, url, name) {
return allure.link(url, type, name);
return Promise.resolve(allure.link(url, name, type));
},

@@ -44,3 +44,3 @@ /**

links: function links() {
return allure.links.apply(allure, arguments);
return Promise.resolve(allure.links.apply(allure, arguments));
},

@@ -51,3 +51,3 @@ /**

parameter: function parameter(name, value, options) {
return allure.parameter(name, value, options);
return Promise.resolve(allure.parameter(name, value, options));
},

@@ -58,3 +58,3 @@ /**

description: function description() {
return allure.description.apply(allure, arguments);
return Promise.resolve(allure.description.apply(allure, arguments));
},

@@ -65,3 +65,3 @@ /**

descriptionHtml: function descriptionHtml(html) {
return allure.descriptionHtml(html);
return Promise.resolve(allure.descriptionHtml(html));
},

@@ -72,3 +72,3 @@ /**

testCaseId: function testCaseId(id) {
return allure.testCaseId(id);
return Promise.resolve(allure.testCaseId(id));
},

@@ -79,3 +79,3 @@ /**

historyId: function historyId(id) {
return allure.historyId(id);
return Promise.resolve(allure.historyId(id));
},

@@ -86,3 +86,3 @@ /**

allureId: function allureId(id) {
return allure.allureId(id);
return Promise.resolve(allure.allureId(id));
},

@@ -93,3 +93,3 @@ /**

displayName: function displayName(name) {
return allure.displayName(name);
return Promise.resolve(allure.displayName(name));
},

@@ -100,3 +100,5 @@ /**

attachment: function attachment(name, content, type) {
return allure.attachment(name, content, type);
return Promise.resolve(allure.attachment(name, content, {
contentType: type
}));
},

@@ -107,3 +109,3 @@ /**

issue: function issue(name, url) {
return allure.issue(url, name);
return Promise.resolve(allure.issue(url, name));
},

@@ -114,3 +116,3 @@ /**

tms: function tms(name, url) {
return allure.tms(url, name);
return Promise.resolve(allure.tms(url, name));
},

@@ -121,3 +123,3 @@ /**

epic: function epic(name) {
return allure.epic(name);
return Promise.resolve(allure.epic(name));
},

@@ -128,3 +130,3 @@ /**

feature: function feature(name) {
return allure.feature(name);
return Promise.resolve(allure.feature(name));
},

@@ -135,3 +137,3 @@ /**

story: function story(name) {
return allure.story(name);
return Promise.resolve(allure.story(name));
},

@@ -142,3 +144,3 @@ /**

suite: function suite(name) {
return allure.suite(name);
return Promise.resolve(allure.suite(name));
},

@@ -149,3 +151,3 @@ /**

parentSuite: function parentSuite(name) {
return allure.parentSuite(name);
return Promise.resolve(allure.parentSuite(name));
},

@@ -156,3 +158,3 @@ /**

subSuite: function subSuite(name) {
return allure.subSuite(name);
return Promise.resolve(allure.subSuite(name));
},

@@ -163,3 +165,3 @@ /**

owner: function owner(name) {
return allure.owner(name);
return Promise.resolve(allure.owner(name));
},

@@ -170,3 +172,3 @@ /**

severity: function severity(name) {
return allure.severity(name);
return Promise.resolve(allure.severity(name));
},

@@ -177,3 +179,3 @@ /**

layer: function layer(name) {
return allure.layer(name);
return Promise.resolve(allure.layer(name));
},

@@ -184,3 +186,3 @@ /**

tag: function tag(name) {
return allure.tag(name);
return Promise.resolve(allure.tag(name));
},

@@ -191,3 +193,3 @@ /**

tags: function tags() {
return allure.tags.apply(allure, arguments);
return Promise.resolve(allure.tags.apply(allure, arguments));
},

@@ -198,5 +200,5 @@ /**

step: function step(name, body) {
return allure.step(name, body);
return Promise.resolve(allure.step(name, body));
}
};
//# sourceMappingURL=legacy.js.map

@@ -29,4 +29,3 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }

import { extractMetadataFromString, getMessageAndTraceFromError, hasLabel, stripAnsi } from "allure-js-commons/sdk";
import { md5 } from "allure-js-commons/sdk/reporter";
import { ALLURE_RUNTIME_MESSAGE_CONTENT_TYPE, FileSystemWriter, MessageWriter, ReporterRuntime, escapeRegExp, parseTestPlan, readImageAsBase64 } from "allure-js-commons/sdk/reporter";
import { ALLURE_RUNTIME_MESSAGE_CONTENT_TYPE, FileSystemWriter, MessageWriter, ReporterRuntime, escapeRegExp, md5, parseTestPlan, readImageAsBase64 } from "allure-js-commons/sdk/reporter";
import { allurePlaywrightLegacyApi } from "./legacy.js";

@@ -295,15 +294,9 @@ import { statusToAllureStats } from "./utils.js";

if (result.stdout.length > 0) {
this.allureRuntime.writeAttachment({
name: "stdout",
contentType: ContentType.TEXT,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
content: Buffer.from(stripAnsi(result.stdout.join("")), "utf8")
this.allureRuntime.writeAttachment("stdout", Buffer.from(stripAnsi(result.stdout.join("")), "utf-8"), {
contentType: ContentType.TEXT
}, testUuid);
}
if (result.stderr.length > 0) {
this.allureRuntime.writeAttachment({
name: "stderr",
contentType: ContentType.TEXT,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
content: Buffer.from(stripAnsi(result.stderr.join("")), "utf8")
this.allureRuntime.writeAttachment("stderr", Buffer.from(stripAnsi(result.stderr.join("")), "utf-8"), {
contentType: ContentType.TEXT
}, testUuid);

@@ -473,6 +466,4 @@ }

}
this.allureRuntime.writeAttachment({
name: attachment.name,
contentType: attachment.contentType,
content: attachment.body
this.allureRuntime.writeAttachment(attachment.name, attachment.body, {
contentType: attachment.contentType
}, testUuid);

@@ -518,10 +509,8 @@ _context4.next = 19;

diffName = attachment.name.replace(diffEndRegexp, "");
this.allureRuntime.writeAttachment({
name: diffName,
content: JSON.stringify({
expected: expectedBase64,
actual: actualBase64,
diff: diffBase64,
name: diffName
}),
this.allureRuntime.writeAttachment(diffName, Buffer.from(JSON.stringify({
expected: expectedBase64,
actual: actualBase64,
diff: diffBase64,
name: diffName
}), "utf-8"), {
contentType: ContentType.IMAGEDIFF,

@@ -528,0 +517,0 @@ fileExtension: ".imagediff"

@@ -15,3 +15,3 @@ import * as allure from "allure-js-commons";

label: function label() {
return allure.label.apply(allure, arguments);
return Promise.resolve(allure.label.apply(allure, arguments));
},

@@ -22,3 +22,3 @@ /**

labels: function labels() {
return allure.labels.apply(allure, arguments);
return Promise.resolve(allure.labels.apply(allure, arguments));
},

@@ -29,3 +29,3 @@ /**

link: function link(type, url, name) {
return allure.link(url, type, name);
return Promise.resolve(allure.link(url, name, type));
},

@@ -36,3 +36,3 @@ /**

links: function links() {
return allure.links.apply(allure, arguments);
return Promise.resolve(allure.links.apply(allure, arguments));
},

@@ -43,3 +43,3 @@ /**

parameter: function parameter(name, value, options) {
return allure.parameter(name, value, options);
return Promise.resolve(allure.parameter(name, value, options));
},

@@ -50,3 +50,3 @@ /**

description: function description() {
return allure.description.apply(allure, arguments);
return Promise.resolve(allure.description.apply(allure, arguments));
},

@@ -57,3 +57,3 @@ /**

descriptionHtml: function descriptionHtml(html) {
return allure.descriptionHtml(html);
return Promise.resolve(allure.descriptionHtml(html));
},

@@ -64,3 +64,3 @@ /**

testCaseId: function testCaseId(id) {
return allure.testCaseId(id);
return Promise.resolve(allure.testCaseId(id));
},

@@ -71,3 +71,3 @@ /**

historyId: function historyId(id) {
return allure.historyId(id);
return Promise.resolve(allure.historyId(id));
},

@@ -78,3 +78,3 @@ /**

allureId: function allureId(id) {
return allure.allureId(id);
return Promise.resolve(allure.allureId(id));
},

@@ -85,3 +85,3 @@ /**

displayName: function displayName(name) {
return allure.displayName(name);
return Promise.resolve(allure.displayName(name));
},

@@ -92,3 +92,5 @@ /**

attachment: function attachment(name, content, type) {
return allure.attachment(name, content, type);
return Promise.resolve(allure.attachment(name, content, {
contentType: type
}));
},

@@ -99,3 +101,3 @@ /**

issue: function issue(name, url) {
return allure.issue(url, name);
return Promise.resolve(allure.issue(url, name));
},

@@ -106,3 +108,3 @@ /**

tms: function tms(name, url) {
return allure.tms(url, name);
return Promise.resolve(allure.tms(url, name));
},

@@ -113,3 +115,3 @@ /**

epic: function epic(name) {
return allure.epic(name);
return Promise.resolve(allure.epic(name));
},

@@ -120,3 +122,3 @@ /**

feature: function feature(name) {
return allure.feature(name);
return Promise.resolve(allure.feature(name));
},

@@ -127,3 +129,3 @@ /**

story: function story(name) {
return allure.story(name);
return Promise.resolve(allure.story(name));
},

@@ -134,3 +136,3 @@ /**

suite: function suite(name) {
return allure.suite(name);
return Promise.resolve(allure.suite(name));
},

@@ -141,3 +143,3 @@ /**

parentSuite: function parentSuite(name) {
return allure.parentSuite(name);
return Promise.resolve(allure.parentSuite(name));
},

@@ -148,3 +150,3 @@ /**

subSuite: function subSuite(name) {
return allure.subSuite(name);
return Promise.resolve(allure.subSuite(name));
},

@@ -155,3 +157,3 @@ /**

owner: function owner(name) {
return allure.owner(name);
return Promise.resolve(allure.owner(name));
},

@@ -162,3 +164,3 @@ /**

severity: function severity(name) {
return allure.severity(name);
return Promise.resolve(allure.severity(name));
},

@@ -169,3 +171,3 @@ /**

layer: function layer(name) {
return allure.layer(name);
return Promise.resolve(allure.layer(name));
},

@@ -176,3 +178,3 @@ /**

tag: function tag(name) {
return allure.tag(name);
return Promise.resolve(allure.tag(name));
},

@@ -183,3 +185,3 @@ /**

tags: function tags() {
return allure.tags.apply(allure, arguments);
return Promise.resolve(allure.tags.apply(allure, arguments));
},

@@ -190,5 +192,5 @@ /**

step: function step(name, body) {
return allure.step(name, body);
return Promise.resolve(allure.step(name, body));
}
};
//# sourceMappingURL=legacy.js.map

@@ -49,4 +49,10 @@ /// <reference types="node" />

}
/**
* @deprecated for removal, import functions directly from "allure-js-commons".
*/
export declare const allure: import("./legacy.js").AllurePlaywrightLegacyApi;
/**
* @deprecated for removal, import functions directly from "@playwright/test".
*/
export { test, expect } from "@playwright/test";
export default AllureReporter;
/// <reference types="node" />
import type { Label, Link } from "allure-js-commons";
/**
* @deprecated please use api exported by "allure-js-commons" instead.
*/
export interface AllurePlaywrightLegacyApi {

@@ -34,2 +37,5 @@ label: (name: string, value: string) => Promise<void>;

}
/**
* @deprecated please use api exported by "allure-js-commons" instead.
*/
export declare const allurePlaywrightLegacyApi: AllurePlaywrightLegacyApi;
{
"name": "allure-playwright",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"description": "Allure Playwright integration",

@@ -54,6 +54,6 @@ "keywords": [

"pretest": "run compile",
"test": "vitest run test/spec"
"test": "vitest run"
},
"dependencies": {
"allure-js-commons": "3.0.0-beta.1"
"allure-js-commons": "3.0.0-beta.2"
},

@@ -60,0 +60,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc