Skip to content

Commit

Permalink
update snapshot comments to be more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker committed Apr 7, 2022
1 parent 96328b5 commit be4bc19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/driver/src/cy/snapshots.ts
Expand Up @@ -107,7 +107,7 @@ export const create = ($$, state) => {
return {}
}

// TODO: clean up. If cross origin process snapshot, styles are directly added into the CSS map
// If a cross origin process snapshot, styles are directly added into the CSS map. Simply return them.
if (stylesOrStyleIds?.headStyles || stylesOrStyleIds.bodyStyles) {
return stylesOrStyleIds
}
Expand Down Expand Up @@ -241,7 +241,6 @@ export const create = ($$, state) => {
body,
}

// TODO: figure out styles
if (headStyleIds && bodyStyleIds) {
snapshotsMap.set(snapshot, { headStyleIds, bodyStyleIds })
}
Expand Down

0 comments on commit be4bc19

Please sign in to comment.