Skip to content

Commit bb43e4c

Browse files
committed
fix mr issues
1 parent 6d8bfd6 commit bb43e4c

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

packages/allure-playwright/test/spec/fullName.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { runPlaywrightInlineTest } from "../utils.js";
44

55
it("should preserve fullName format and include fallback testCaseId", async () => {
66
const { tests } = await runPlaywrightInlineTest({
7-
"package.json": JSON.stringify({ name: "allure-playwright" }),
7+
"package.json": JSON.stringify({ name: "dummy" }),
88
"sample.test.js": `
99
import { test } from '@playwright/test';
1010
@@ -14,7 +14,7 @@ it("should preserve fullName format and include fallback testCaseId", async () =
1414

1515
expect(tests).toHaveLength(1);
1616
expect(tests[0].fullName).toMatch(/^sample\.test\.js:\d+:\d+$/);
17-
expect(tests[0].testCaseId).toBe(md5("allure-playwright:sample.test.js#test 1"));
17+
expect(tests[0].testCaseId).toBe(md5("dummy:sample.test.js#test 1"));
1818
expect(tests[0].labels).toEqual(
1919
expect.arrayContaining([
2020
{

packages/allure-playwright/test/spec/history.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { runPlaywrightInlineTest } from "../utils.js";
55

66
it("historical data should be fine", async () => {
77
const { tests } = await runPlaywrightInlineTest({
8-
"package.json": JSON.stringify({ name: "allure-playwright" }),
8+
"package.json": JSON.stringify({ name: "dummy" }),
99
"sample.test.js": `
1010
import { test } from '@playwright/test';
1111
@@ -15,7 +15,7 @@ it("historical data should be fine", async () => {
1515
`,
1616
});
1717
const fullName = "sample.test.js:5:13";
18-
const testCaseId = md5("allure-playwright:sample.test.js#nested test");
18+
const testCaseId = md5("dummy:sample.test.js#nested test");
1919
const [testResult] = tests;
2020

2121
expect(testResult).toEqual(

packages/allure-playwright/test/spec/skip.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { runPlaywrightInlineTest } from "../utils.js";
66

77
it("reports programmatically skipped results", async () => {
88
const { tests } = await runPlaywrightInlineTest({
9-
"package.json": JSON.stringify({ name: "allure-playwright" }),
9+
"package.json": JSON.stringify({ name: "dummy" }),
1010
"sample.test.js": `
1111
import test from '@playwright/test';
1212
@@ -23,9 +23,9 @@ it("reports programmatically skipped results", async () => {
2323
const skipped1 = tests.find((test) => test.name === "should be skipped 1")!;
2424
const notSkipped = tests.find((test) => test.name === "should not be skipped")!;
2525
const skipped2 = tests.find((test) => test.name === "should be skipped 2")!;
26-
const skipped1TestCaseId = md5("allure-playwright:sample.test.js#should be skipped 1");
27-
const notSkippedTestCaseId = md5("allure-playwright:sample.test.js#should not be skipped");
28-
const skipped2TestCaseId = md5("allure-playwright:sample.test.js#should be skipped 2");
26+
const skipped1TestCaseId = md5("dummy:sample.test.js#should be skipped 1");
27+
const notSkippedTestCaseId = md5("dummy:sample.test.js#should not be skipped");
28+
const skipped2TestCaseId = md5("dummy:sample.test.js#should be skipped 2");
2929

3030
expect(skipped1).toEqual(
3131
expect.objectContaining({

packages/allure-playwright/test/spec/titlePath.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { runPlaywrightInlineTest } from "../utils.js";
44

55
it("should assign titlePath property to the test result", async () => {
66
const { tests } = await runPlaywrightInlineTest({
7+
"package.json": JSON.stringify({ name: "dummy" }),
78
"foo/bar/sample.test.js": `
89
import { test } from '@playwright/test';
910
@@ -15,11 +16,12 @@ it("should assign titlePath property to the test result", async () => {
1516

1617
const [tr] = tests;
1718

18-
expect(tr.titlePath).toEqual(["project", "foo", "bar", "sample.test.js"]);
19+
expect(tr.titlePath).toEqual(["dummy", "foo", "bar", "sample.test.js"]);
1920
});
2021

2122
it("should assign titlePath property to the test result with suites", async () => {
2223
const { tests } = await runPlaywrightInlineTest({
24+
"package.json": JSON.stringify({ name: "dummy" }),
2325
"foo/bar/sample.test.js": `
2426
import { test } from '@playwright/test';
2527
@@ -35,5 +37,5 @@ it("should assign titlePath property to the test result with suites", async () =
3537

3638
const [tr] = tests;
3739

38-
expect(tr.titlePath).toEqual(["project", "foo", "bar", "sample.test.js", "foo", "bar"]);
40+
expect(tr.titlePath).toEqual(["dummy", "foo", "bar", "sample.test.js", "foo", "bar"]);
3941
});

0 commit comments

Comments
 (0)