Fix flaky performance test and disable it from PRs

[MAILPOET-6157]
This commit is contained in:
Veljko
2024-07-22 17:44:38 +02:00
committed by alex-mpoet
parent c05b45ac80
commit 077328c469
2 changed files with 6 additions and 7 deletions

View File

@@ -1029,7 +1029,7 @@ workflows:
- acceptance_tests_woo_hpos_sync_on
- acceptance_tests_woo_hpos_off
- acceptance_tests_blockbased_theme
- performance_tests
# performance_tests disabled
nightly:
triggers:

View File

@@ -55,6 +55,11 @@ export async function segmentsSelectTemplate() {
page.waitForLoadState('networkidle'),
]);
await page.screenshot({
path: screenshotPath + 'Segments_Select_Template_02.png',
fullPage: fullPageSet,
});
// Save the segment
await waitForSelectorToBeClickable(
page,
@@ -62,12 +67,6 @@ export async function segmentsSelectTemplate() {
);
await focusAndClick(page, 'div.mailpoet-form-actions > button');
await page.waitForLoadState('networkidle');
await page.screenshot({
path: screenshotPath + 'Segments_Select_Template_02.png',
fullPage: fullPageSet,
});
await page.waitForSelector('[data-automation-id="select_all"]');
const segmentUpdatedMessage =
"//div[@class='notice-success'].//p[starts-with(text(),'Segment successfully updated!')]";