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:
committed by
Aschepikov
parent
3782fb4bdd
commit
f156629a93
@@ -39,13 +39,10 @@ export async function listsComplexSegment() {
|
|||||||
// Log in to WP Admin
|
// Log in to WP Admin
|
||||||
await login(page);
|
await login(page);
|
||||||
|
|
||||||
// Go to the Lists page
|
// Go to the segments page
|
||||||
await page.goto(
|
await page.goto(`${baseURL}/wp-admin/admin.php?page=mailpoet-segments`, {
|
||||||
`${baseURL}/wp-admin/admin.php?page=mailpoet-segments#/lists`,
|
waitUntil: 'networkidle',
|
||||||
{
|
});
|
||||||
waitUntil: 'networkidle',
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await page.screenshot({
|
await page.screenshot({
|
||||||
|
@@ -38,12 +38,9 @@ export async function listsViewSubscribers() {
|
|||||||
await login(page);
|
await login(page);
|
||||||
|
|
||||||
// Go to the Lists page
|
// Go to the Lists page
|
||||||
await page.goto(
|
await page.goto(`${baseURL}/wp-admin/admin.php?page=mailpoet-lists`, {
|
||||||
`${baseURL}/wp-admin/admin.php?page=mailpoet-segments#/lists`,
|
waitUntil: 'networkidle',
|
||||||
{
|
});
|
||||||
waitUntil: 'networkidle',
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await page.screenshot({
|
await page.screenshot({
|
||||||
@@ -52,13 +49,9 @@ export async function listsViewSubscribers() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Click to view subscribers of the default list "Newsletter mailing list"
|
// Click to view subscribers of the default list "Newsletter mailing list"
|
||||||
await page.waitForSelector('[data-automation-id="dynamic-segments-tab"]');
|
await page.waitForSelector(
|
||||||
describe(listsPageTitle, () => {
|
'[data-automation-id="segment_name_' + defaultListName + '"]',
|
||||||
describe('should be able to see Segments tab', () => {
|
);
|
||||||
expect(page.locator('[data-automation-id="dynamic-segments-tab"]')).to
|
|
||||||
.exist;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
await page
|
await page
|
||||||
.locator('[data-automation-id="segment_name_' + defaultListName + '"]')
|
.locator('[data-automation-id="segment_name_' + defaultListName + '"]')
|
||||||
.hover();
|
.hover();
|
||||||
|
Reference in New Issue
Block a user