Move page screenshot after submit

This commit is contained in:
Veljko
2024-04-29 14:05:18 +02:00
committed by alex-mpoet
parent c1b19d9c07
commit ff56eef904

View File

@ -51,13 +51,15 @@ export async function segmentsSelectTemplate() {
page.waitForLoadState('networkidle'), page.waitForLoadState('networkidle'),
]); ]);
// Save the segment
await focusAndClick(page, 'button[type="submit"]');
await page.waitForLoadState('networkidle');
await page.screenshot({ await page.screenshot({
path: screenshotPath + 'Segments_Select_Template_02.png', path: screenshotPath + 'Segments_Select_Template_02.png',
fullPage: fullPageSet, fullPage: fullPageSet,
}); });
// Save the segment
await focusAndClick(page, 'button[type="submit"]');
await page.waitForSelector('[data-automation-id="filters_all"]', { await page.waitForSelector('[data-automation-id="filters_all"]', {
state: 'visible', state: 'visible',
}); });