diff --git a/tests/07-peptide-news-admin.spec.ts b/tests/07-peptide-news-admin.spec.ts index 500cdf7..612cbe6 100644 --- a/tests/07-peptide-news-admin.spec.ts +++ b/tests/07-peptide-news-admin.spec.ts @@ -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'); }); }); diff --git a/tests/08-pr-vision-admin.spec.ts b/tests/08-pr-vision-admin.spec.ts index 1719ac9..223bcb8 100644 --- a/tests/08-pr-vision-admin.spec.ts +++ b/tests/08-pr-vision-admin.spec.ts @@ -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'); }); });