I want to capture the full page screenshot from figma design and validate that screen shot with actual static site. I need to do that using Playwright visual validation. I am trying to capture the full page SS of the figma design using below code:
test('figma design',async({page})=>
{
await page.goto("https:xyz");
await expect(page).toHaveScreenshot("FigmaDesignScreenshotFull.png",{fullPage: true});
});
Its runs correctly but its not capturing the full page screenshot its just capturing the page displayed in Figma Url.
Actions taken:- 1- Tried increasing the port size while capturing the screen. 2- Tried scrolling down with mouse and capture above approach did not worked.
Note:- The Figma design is for responsive site.