Update performance tests to reflect separating segments and lists

Segments and lists were separated into different pages in a previous
commit. This commit updates the performance tests to reflect this change.

[MAILPOET-5392]
This commit is contained in:
Rodrigo Primo
2023-06-20 15:45:36 -03:00
committed by Aschepikov
parent 3782fb4bdd
commit f156629a93
2 changed files with 10 additions and 20 deletions

View File

@@ -39,13 +39,10 @@ export async function listsComplexSegment() {
// Log in to WP Admin
await login(page);
// Go to the Lists page
await page.goto(
`${baseURL}/wp-admin/admin.php?page=mailpoet-segments#/lists`,
{
waitUntil: 'networkidle',
},
);
// Go to the segments page
await page.goto(`${baseURL}/wp-admin/admin.php?page=mailpoet-segments`, {
waitUntil: 'networkidle',
});
await page.waitForLoadState('networkidle');
await page.screenshot({

View File

@@ -38,12 +38,9 @@ export async function listsViewSubscribers() {
await login(page);
// Go to the Lists page
await page.goto(
`${baseURL}/wp-admin/admin.php?page=mailpoet-segments#/lists`,
{
waitUntil: 'networkidle',
},
);
await page.goto(`${baseURL}/wp-admin/admin.php?page=mailpoet-lists`, {
waitUntil: 'networkidle',
});
await page.waitForLoadState('networkidle');
await page.screenshot({
@@ -52,13 +49,9 @@ export async function listsViewSubscribers() {
});
// Click to view subscribers of the default list "Newsletter mailing list"
await page.waitForSelector('[data-automation-id="dynamic-segments-tab"]');
describe(listsPageTitle, () => {
describe('should be able to see Segments tab', () => {
expect(page.locator('[data-automation-id="dynamic-segments-tab"]')).to
.exist;
});
});
await page.waitForSelector(
'[data-automation-id="segment_name_' + defaultListName + '"]',
);
await page
.locator('[data-automation-id="segment_name_' + defaultListName + '"]')
.hover();