feat(e2e): admin smoke coverage for Peptide News + PR Vision (v1.7.0) #20

Merged
peptiderepo merged 5 commits from claude/e2e-news-vision-admin-20260617 into main 2026-06-16 18:41:11 +00:00
2 changed files with 8 additions and 4 deletions
Showing only changes of commit 8596b5dfa1 - Show all commits

View File

@@ -121,9 +121,10 @@ test.describe('WP Admin - Peptide News Plugin articles page', () => {
await expect(page.locator('#wpbody')).toBeVisible();
const body = (await page.textContent('body')) ?? '';
expect(body).not.toContain('Fatal error');
expect(body).not.toContain('Invalid plugin page');
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();
const body = (await page.textContent('body')) ?? '';
expect(body).not.toContain('Fatal error');
expect(body).not.toContain('Invalid plugin page');
if (isPluginAbsent(body, page.url())) { skipMissing(); return; }
expect(body).not.toContain('Invalid plugin page');
});
});

View File

@@ -185,9 +185,10 @@ test.describe('WP Admin - PR Vision Costs page', () => {
await expect(page.locator('#wpbody')).toBeVisible();
const body = (await page.textContent('body')) ?? '';
expect(body).not.toContain('Fatal error');
expect(body).not.toContain('Invalid plugin page');
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();
const body = (await page.textContent('body')) ?? '';
expect(body).not.toContain('Fatal error');
expect(body).not.toContain('Invalid plugin page');
if (isPluginAbsent(body, page.url())) { skipMissing(); return; }
expect(body).not.toContain('Invalid plugin page');
});
});