feat(e2e): admin smoke coverage for Peptide News + PR Vision (v1.7.0) #20
@@ -121,9 +121,10 @@ test.describe('WP Admin - Peptide News Plugin articles page', () => {
|
|||||||
await expect(page.locator('#wpbody')).toBeVisible();
|
await expect(page.locator('#wpbody')).toBeVisible();
|
||||||
const body = (await page.textContent('body')) ?? '';
|
const body = (await page.textContent('body')) ?? '';
|
||||||
expect(body).not.toContain('Fatal error');
|
expect(body).not.toContain('Fatal error');
|
||||||
expect(body).not.toContain('Invalid plugin page');
|
|
||||||
|
|
||||||
if (isPluginAbsent(body, page.url())) { skipMissing(); return; }
|
if (isPluginAbsent(body, page.url())) { skipMissing(); return; }
|
||||||
|
|
||||||
|
expect(body).not.toContain('Invalid plugin page');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -135,8 +136,9 @@ test.describe('WP Admin - Peptide News Plugin LLM costs page', () => {
|
|||||||
await expect(page.locator('#wpbody')).toBeVisible();
|
await expect(page.locator('#wpbody')).toBeVisible();
|
||||||
const body = (await page.textContent('body')) ?? '';
|
const body = (await page.textContent('body')) ?? '';
|
||||||
expect(body).not.toContain('Fatal error');
|
expect(body).not.toContain('Fatal error');
|
||||||
expect(body).not.toContain('Invalid plugin page');
|
|
||||||
|
|
||||||
if (isPluginAbsent(body, page.url())) { skipMissing(); return; }
|
if (isPluginAbsent(body, page.url())) { skipMissing(); return; }
|
||||||
|
|
||||||
|
expect(body).not.toContain('Invalid plugin page');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -185,9 +185,10 @@ test.describe('WP Admin - PR Vision Costs page', () => {
|
|||||||
await expect(page.locator('#wpbody')).toBeVisible();
|
await expect(page.locator('#wpbody')).toBeVisible();
|
||||||
const body = (await page.textContent('body')) ?? '';
|
const body = (await page.textContent('body')) ?? '';
|
||||||
expect(body).not.toContain('Fatal error');
|
expect(body).not.toContain('Fatal error');
|
||||||
expect(body).not.toContain('Invalid plugin page');
|
|
||||||
|
|
||||||
if (isPluginAbsent(body, page.url())) { skipMissing(); return; }
|
if (isPluginAbsent(body, page.url())) { skipMissing(); return; }
|
||||||
|
|
||||||
|
expect(body).not.toContain('Invalid plugin page');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -199,8 +200,9 @@ test.describe('WP Admin - PR Vision Call Log page', () => {
|
|||||||
await expect(page.locator('#wpbody')).toBeVisible();
|
await expect(page.locator('#wpbody')).toBeVisible();
|
||||||
const body = (await page.textContent('body')) ?? '';
|
const body = (await page.textContent('body')) ?? '';
|
||||||
expect(body).not.toContain('Fatal error');
|
expect(body).not.toContain('Fatal error');
|
||||||
expect(body).not.toContain('Invalid plugin page');
|
|
||||||
|
|
||||||
if (isPluginAbsent(body, page.url())) { skipMissing(); return; }
|
if (isPluginAbsent(body, page.url())) { skipMissing(); return; }
|
||||||
|
|
||||||
|
expect(body).not.toContain('Invalid plugin page');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user