Skip to content

Commit

Permalink
More expected test changes I missed when authoring PR
Browse files Browse the repository at this point in the history
  • Loading branch information
eoghanmurray committed Apr 15, 2024
1 parent d698ed0 commit b619c0b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
29 changes: 16 additions & 13 deletions packages/rrweb/test/__snapshots__/integration.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5526,12 +5526,13 @@ exports[`record integration tests mutations should work when blocked class is un
{
\\"type\\": 2,
\\"tagName\\": \\"style\\",
\\"attributes\\": {},
\\"attributes\\": {
\\"_cssText\\": \\"#b-class, #b-class-2 { height: 33px; width: 200px; }\\"
},
\\"childNodes\\": [
{
\\"type\\": 3,
\\"textContent\\": \\"#b-class, #b-class-2 { height: 33px; width: 200px; }\\",
\\"isStyle\\": true,
\\"textContent\\": \\"\\",
\\"id\\": 9
}
],
Expand Down Expand Up @@ -8422,12 +8423,13 @@ exports[`record integration tests should nest record iframe 1`] = `
{
\\"type\\": 2,
\\"tagName\\": \\"style\\",
\\"attributes\\": {},
\\"attributes\\": {
\\"_cssText\\": \\"iframe { width: 500px; height: 500px; }\\"
},
\\"childNodes\\": [
{
\\"type\\": 3,
\\"textContent\\": \\"iframe { width: 500px; height: 500px; }\\",
\\"isStyle\\": true,
\\"textContent\\": \\"\\",
\\"id\\": 14
}
],
Expand Down Expand Up @@ -12470,7 +12472,6 @@ exports[`record integration tests should record dynamic CSS changes 1`] = `
{
\\"type\\": 3,
\\"textContent\\": \\"\\",
\\"isStyle\\": true,
\\"id\\": 18
}
],
Expand Down Expand Up @@ -15840,12 +15841,13 @@ exports[`record integration tests should record shadow DOM 1`] = `
{
\\"type\\": 2,
\\"tagName\\": \\"style\\",
\\"attributes\\": {},
\\"attributes\\": {
\\"_cssText\\": \\".my-element { margin: 0px 0px 1rem; }iframe { border: 0px; width: 100%; padding: 0px; }body { max-width: 400px; margin: 1rem auto; padding: 0px 1rem; font-family: \\\\\\"comic sans ms\\\\\\"; }\\"
},
\\"childNodes\\": [
{
\\"type\\": 3,
\\"textContent\\": \\".my-element { margin: 0px 0px 1rem; }iframe { border: 0px; width: 100%; padding: 0px; }body { max-width: 400px; margin: 1rem auto; padding: 0px 1rem; font-family: \\\\\\"comic sans ms\\\\\\"; }\\",
\\"isStyle\\": true,
\\"textContent\\": \\"\\",
\\"id\\": 14
}
],
Expand Down Expand Up @@ -15923,12 +15925,13 @@ exports[`record integration tests should record shadow DOM 1`] = `
{
\\"type\\": 2,
\\"tagName\\": \\"style\\",
\\"attributes\\": {},
\\"attributes\\": {
\\"_cssText\\": \\"body { margin: 0px; }p { border: 1px solid rgb(204, 204, 204); padding: 1rem; color: red; font-family: sans-serif; }\\"
},
\\"childNodes\\": [
{
\\"type\\": 3,
\\"textContent\\": \\"body { margin: 0px; }p { border: 1px solid rgb(204, 204, 204); padding: 1rem; color: red; font-family: sans-serif; }\\",
\\"isStyle\\": true,
\\"textContent\\": \\"\\",
\\"id\\": 28
}
],
Expand Down
13 changes: 6 additions & 7 deletions packages/rrweb/test/__snapshots__/record.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1386,18 +1386,19 @@ exports[`record captures inserted style text nodes correctly 1`] = `
{
\\"type\\": 2,
\\"tagName\\": \\"style\\",
\\"attributes\\": {},
\\"attributes\\": {
\\"_cssText\\": \\"div { color: red; }section { color: blue; }\\",
\\"_cssTextSplits\\": \\"19\\"
},
\\"childNodes\\": [
{
\\"type\\": 3,
\\"textContent\\": \\"div { color: red; }\\",
\\"isStyle\\": true,
\\"textContent\\": \\"\\",
\\"id\\": 6
},
{
\\"type\\": 3,
\\"textContent\\": \\"section { color: blue; }\\",
\\"isStyle\\": true,
\\"textContent\\": \\"\\",
\\"id\\": 7
}
],
Expand Down Expand Up @@ -1460,7 +1461,6 @@ exports[`record captures inserted style text nodes correctly 1`] = `
\\"node\\": {
\\"type\\": 3,
\\"textContent\\": \\"h1 { color: pink; }\\",
\\"isStyle\\": true,
\\"id\\": 12
}
},
Expand All @@ -1470,7 +1470,6 @@ exports[`record captures inserted style text nodes correctly 1`] = `
\\"node\\": {
\\"type\\": 3,
\\"textContent\\": \\"span { color: orange; }\\",
\\"isStyle\\": true,
\\"id\\": 13
}
}
Expand Down

0 comments on commit b619c0b

Please sign in to comment.