Fix flaky performance test and disable it from PRs
[MAILPOET-6157]
This commit is contained in:
@@ -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:
|
||||
|
@@ -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!')]";
|
||||
|
Reference in New Issue
Block a user