# extendify/3.1.0/tests/playwright/PageCreator/enabled.spec.ts

Extendify, version 3.1.0. 24 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.0/code/tests/playwright/PageCreator/enabled.spec.ts
- Raw: https://pluginprobe.com/plugins/extendify/3.1.0/raw/tests/playwright/PageCreator/enabled.spec.ts
- Modified: 2026-06-11T18:37:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.1.0/code/tests/playwright/PageCreator/enabled.spec.ts#L10-L20`.

```typescript
import { expect, test } from '../fixtures';

test.beforeEach(async ({ requestUtils }) => {
	await requestUtils.login();
});

test('Page Creator modal auto-opens when showAIPageCreation is enabled', async ({
	admin,
	page,
}) => {
	await admin.visitAdminPage('post-new.php', 'post_type=page');

	const button = page.locator(
		'#extendify-page-creator-btn > div[role="button"]',
	);
	await expect(button).toBeVisible({ timeout: 15_000 });

	const modal = page.locator('.extendify-page-creator-modal');
	await expect(modal).toBeVisible();

	await page.getByTestId('modal-close-button').click();
	await expect(modal).toBeHidden();
});

```
