netresearch/typo3-testing-skill / skills/typo3-testing
typo3-testing
FlaggedUse when reproducing defects as failing tests, testing template or rendered output changes, confirming changes on a running TYPO3 instance, or setting up TYPO3 extension tests: unit/functional/E2E, PHPUnit 11-13, mutation testing, final-class mocks (v14), CI matrix across TYPO3 12/13/14.3 LTS, typo3-ci-workflows meta-package, CI failures. Also: transaction rollback, worker crashes, competing requests, testing-framework setup, test matrix, integration/e2e testing, coverage, test generation.
assets/Build/playwright/tests/playwright/e2e/backend-module.spec.ts
View on GitHub/**
* Example E2E Test for TYPO3 Backend Module
*
* Replace 'my_extension' with your extension key and
* customize the tests for your module's functionality.
*/
import { test, expect } from '../fixtures/setup-fixtures';
test.describe('My Extension Backend Module', () => {
test('can access module', async ({ backend }) => {
// Navigate to your extension's module
// Replace 'web_myextension' with your module identifier
await backend.gotoModule('web_myextension');
await backend.moduleLoaded();
// Verify module content is visible
const contentFrame = backend.contentFrame;
await expect(contentFrame.locator('h1')).toBeVisible();
});
test('can perform action in module', async ({ backend, modal }) => {
await backend.gotoModule('web_myextension');
// Example: Click a button that opens a modal
await backend.contentFrame
.getByRole('button', { name: 'Create new record' })
.click();
// Verify modal appears
await expect(modal.container).toBeVisible();
await expect(modal.title).toContainText('Create');
// Close modal
await modal.close();
});
test('can save form data', async ({ backend }) => {
await backend.gotoModule('web_myextension');
const contentFrame = backend.contentFrame;
// Fill form fields
await contentFrame.getByLabel('Title').fill('Test Title');
await contentFrame.getByLabel('Description').fill('Test Description');
// Wait for the save response, registered before the click so a fast
// answer is not missed. networkidle is no substitute: it resolves at once
// on an idle page, often before the POST is sent.
const saved = backend.waitForModuleResponse(/module\/web\/myextension/);
// Save the form
await contentFrame.getByRole('button', { name: 'Save' }).click();
await saved;
// Verify success message
await expect(contentFrame.locator('.alert-success')).toBeVisible();
});
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |