r3h6/typo3-browserkit-testing

BrowserKit testing for TYPO3

Installs: 6 941

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/r3h6/typo3-browserkit-testing

0.4.4-beta 2023-12-08 16:33 UTC

README

Brings Symfony's BrowserKit Component to TYPO3 Testing Framework.

Example

class MyTestCase extends BrowserKitTestCase
{
    public function testExample()
    {
        $client = self::getClient($this);
        $crawler = $client->request('GET', '/');
        self::assertSelectorExists('.example');
    }
}

See also tests/Functional/DomCrawlerAssertionsTest.php

Assertions

You can find details on Symfony's Testing Documentation.

❌ Response Assertions
❌ Request Assertions
❌ Browser Assertions
✅ Crawler Assertions
✅ Mailer Assertions

Known problems

  • File upload not (yet) implemented