Skip to content

Commit cd105f3

Browse files
test: fix
1 parent 1125b60 commit cd105f3

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

test/e2e/__snapshots__/overlay.test.js.snap.webpack5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2474,7 +2474,7 @@ exports[`overlay should show overlay when "Content-Security-Policy" is "default-
24742474
border: none;
24752475
"
24762476
>
2477-
×
2477+
X
24782478
</button>
24792479
<div>
24802480
<div

test/e2e/overlay.test.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1978,10 +1978,16 @@ describe("overlay", () => {
19781978
}),
19791979
).toMatchSnapshot("page html");
19801980
expect(
1981-
await prettier.format(overlayHtml, {
1982-
parser: "html",
1983-
plugins: [prettierHTML, prettierCSS],
1984-
}),
1981+
await prettier.format(
1982+
overlayHtml.replace(
1983+
/<button ([^>]+)>.+<\/button>/m,
1984+
"<button $1>X</button>",
1985+
),
1986+
{
1987+
parser: "html",
1988+
plugins: [prettierHTML, prettierCSS],
1989+
},
1990+
),
19851991
).toMatchSnapshot("overlay html");
19861992
} catch (error) {
19871993
throw error;

0 commit comments

Comments
 (0)