Skip to content

Commit

Permalink
test with firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Feb 20, 2024
1 parent 764901d commit 69cc16c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/PantherDomTest.php → tests/PantherChromeDomTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@
*
* @group panther
*/
final class PantherDomTest extends DomTest
final class PantherChromeDomTest extends DomTest
{
use PantherTestCaseTrait;

protected function dom(): Dom
{
$client = self::createPantherClient(['webServerDir' => __DIR__.'/Fixtures']);
$client = self::createPantherClient([
'browser' => 'chrome',
'webServerDir' => __DIR__.'/Fixtures',
]);
$client->get('/page.html');

return new Dom($client->getCrawler());
Expand Down
36 changes: 36 additions & 0 deletions tests/PantherFirefoxDomTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

/*
* This file is part of the zenstruck/dom package.
*
* (c) Kevin Bond <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Zenstruck\Dom\Tests;

use Symfony\Component\Panther\PantherTestCaseTrait;
use Zenstruck\Dom;

/**
* @author Kevin Bond <[email protected]>
*
* @group panther
*/
final class PantherFirefoxDomTest extends DomTest
{
use PantherTestCaseTrait;

protected function dom(): Dom
{
$client = self::createPantherClient([
'browser' => 'firefox',
'webServerDir' => __DIR__.'/Fixtures',
]);
$client->get('/page.html');

return new Dom($client->getCrawler());
}
}

0 comments on commit 69cc16c

Please sign in to comment.