allure-playwright
Advanced tools
Comparing version 2.0.0-beta.19 to 2.0.0-beta.20
@@ -1,11 +0,4 @@ | ||
import { Label, Link, Parameter, ParameterOptions } from "allure-js-commons"; | ||
export declare const ALLURE_METADATA_CONTENT_TYPE = "application/vnd.allure.metadata+json"; | ||
export interface Metadata { | ||
labels?: Label[]; | ||
links?: Link[]; | ||
description?: string; | ||
parameter?: Parameter[]; | ||
} | ||
import { AttachmentMetadata, Label, Link, ParameterOptions } from "allure-js-commons"; | ||
export declare class allure { | ||
static addMetadataAttachment(metadata: Metadata): void; | ||
static addMetadataAttachment(metadata: AttachmentMetadata): void; | ||
static label(label: Label | Label[]): void; | ||
@@ -12,0 +5,0 @@ static description(value: string): void; |
@@ -6,10 +6,10 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LabelName = exports.allure = exports.ALLURE_METADATA_CONTENT_TYPE = void 0; | ||
exports.LabelName = exports.allure = void 0; | ||
const test_1 = __importDefault(require("@playwright/test")); | ||
const allure_js_commons_1 = require("allure-js-commons"); | ||
exports.ALLURE_METADATA_CONTENT_TYPE = "application/vnd.allure.metadata+json"; | ||
const internal_1 = require("allure-js-commons/internal"); | ||
class allure { | ||
static addMetadataAttachment(metadata) { | ||
test_1.default.info().attach("allure-metadata.json", { | ||
contentType: exports.ALLURE_METADATA_CONTENT_TYPE, | ||
contentType: internal_1.ALLURE_METADATA_CONTENT_TYPE, | ||
body: Buffer.from(JSON.stringify(metadata), "utf8"), | ||
@@ -16,0 +16,0 @@ }); |
@@ -21,3 +21,3 @@ "use strict"; | ||
const allure_js_commons_1 = require("allure-js-commons"); | ||
const helpers_1 = require("./helpers"); | ||
const internal_1 = require("allure-js-commons/internal"); | ||
class AllureReporter { | ||
@@ -111,3 +111,3 @@ constructor(options = { suiteTitle: true, detail: true }) { | ||
} | ||
if (attachment.contentType === helpers_1.ALLURE_METADATA_CONTENT_TYPE) { | ||
if (attachment.contentType === internal_1.ALLURE_METADATA_CONTENT_TYPE) { | ||
if (!attachment.body) { | ||
@@ -114,0 +114,0 @@ continue; |
{ | ||
"name": "allure-playwright", | ||
"version": "2.0.0-beta.19", | ||
"version": "2.0.0-beta.20", | ||
"description": "Allure Playwright integration", | ||
@@ -33,3 +33,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"allure-js-commons": "2.0.0-beta.19" | ||
"allure-js-commons": "2.0.0-beta.20" | ||
}, | ||
@@ -36,0 +36,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
45382
413
+ Addedallure-js-commons@2.0.0-beta.20(transitive)
- Removedallure-js-commons@2.0.0-beta.19(transitive)