From 7a817f082156af513a77b4d804119735d5fcdf7e Mon Sep 17 00:00:00 2001 From: Joe Lencioni Date: Wed, 9 Oct 2024 09:12:06 -0500 Subject: [PATCH] Add note to playwright docs about transformDOM This question came up recently and it seems like we should document it to help point people in the right direction. More info: https://github.com/happo/happo-playwright/issues/5 --- docs/playwright.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/playwright.md b/docs/playwright.md index db5d66f..5264418 100644 --- a/docs/playwright.md +++ b/docs/playwright.md @@ -307,3 +307,11 @@ happened: element, never the surrounding page. - There could be a bug in how `happo-e2e` collects styles and assets. Reach out to support@happo.io and we'll triage. + +### I'm migrating from `happo-cypress` and `transformDOM` is not working + +The `transformDOM` option is currently not supported in `happo-playwright`. + +If you're migrating from `happo-cypress` and are using `transformDOM` to hide +content, you may be able to achieve similar results using +[`data-happo-hide`](./hiding-content.md).