test(smoke): fix three stale assertions (calc path, title, plugin slug) #3
@@ -29,7 +29,7 @@ test.describe('Homepage', () => {
|
||||
|
||||
test('renders site name in page title', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await expect(page).toHaveTitle(/peptiderepo/i);
|
||||
await expect(page).toHaveTitle(/peptide ?repo/i);
|
||||
});
|
||||
|
||||
test('wp-admin bar present (logged-in session)', async ({ page }) => {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
const CALC_PATH = process.env.CALC_PAGE_PATH ?? '/reconstitution-calculator/';
|
||||
const CALC_PATH = process.env.CALC_PAGE_PATH ?? '/calculator/';
|
||||
|
||||
test.describe('Reconstitution Calculator', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
|
||||
@@ -25,7 +25,7 @@ const REQUIRED_PLUGINS = [
|
||||
'peptide-search-ai',
|
||||
'peptide-repo-core',
|
||||
'peptide-reconstitution-calculator',
|
||||
'pr-autoblogger',
|
||||
'prautoblogger',
|
||||
'peptide-starter-theme', // theme, shown differently — checked separately
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user