From 4c22df10b3cc103aa6937c617849cabbeff1eb7f Mon Sep 17 00:00:00 2001 From: Dmitry Baev Date: Mon, 1 Jul 2024 15:47:10 +0100 Subject: [PATCH] chore(allure-playwright): add test for testCaseId for skipped tests --- packages/allure-playwright/test/spec/skip.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/allure-playwright/test/spec/skip.test.ts b/packages/allure-playwright/test/spec/skip.test.ts index 4d07abc52..0642802c7 100644 --- a/packages/allure-playwright/test/spec/skip.test.ts +++ b/packages/allure-playwright/test/spec/skip.test.ts @@ -1,5 +1,6 @@ import { expect, it } from "vitest"; import { Status } from "allure-js-commons"; +import { md5 } from "allure-js-commons/sdk/reporter"; import { runPlaywrightInlineTest } from "../utils.js"; it("reports programmatically skipped results", async () => { @@ -18,10 +19,12 @@ it("reports programmatically skipped results", async () => { expect.objectContaining({ fullName: "sample.test.js:4:12", status: Status.SKIPPED, + testCaseId: md5("sample.test.js#should be skipped 1"), }), expect.objectContaining({ fullName: "sample.test.js:6:11", status: Status.PASSED, + testCaseId: md5("sample.test.js#should not be skipped"), }), ]), );