Playwright & Test Automation
Visual Comparison Testing with Playwright to Evaluate The Closed Shadow Dom
If you are stuck working with the closed shadow-dom one possible solution is to use the screenshot function to take a screenshot of the element and use playwright to perform visual-based regression testing to confirm that the element matches pixel by pixel.