Skip to content

Commit ca6ebd5

Browse files
committed
firefox
1 parent 2152e2b commit ca6ebd5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Turbo/tests/BroadcastTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function setUp(): void
3535

3636
public function testBroadcastBasic(): void
3737
{
38-
($client = self::createPantherClient())->request('GET', '/books');
38+
($client = self::createPantherClient(['browser' => static::FIREFOX]))->request('GET', '/books');
3939

4040
$crawler = $client->submitForm('Submit', ['title' => self::BOOK_TITLE]);
4141
// $client->waitForElementToContain('#books div', self::BOOK_TITLE);
@@ -54,7 +54,7 @@ public function testBroadcastBasic(): void
5454

5555
public function testExpressionLanguageBroadcast(): void
5656
{
57-
($client = self::createPantherClient())->request('GET', '/artists');
57+
($client = self::createPantherClient(['browser' => static::FIREFOX]))->request('GET', '/artists');
5858

5959
$client->submitForm('Submit', ['name' => self::ARTIST_NAME_1]);
6060
$client->waitForElementToContain('#artists div:nth-child(1)', self::ARTIST_NAME_1, 5);
@@ -72,8 +72,8 @@ public function testExpressionLanguageBroadcast(): void
7272
$artist1Id = $matches[1][0];
7373
$artist2Id = $matches[1][1];
7474

75-
($clientArtist1 = self::createAdditionalPantherClient())->request('GET', '/artists/'.$artist1Id);
76-
($clientArtist2 = self::createAdditionalPantherClient())->request('GET', '/artists/'.$artist2Id);
75+
($clientArtist1 = self::createAdditionalPantherClient(['browser' => static::FIREFOX]))->request('GET', '/artists/'.$artist1Id);
76+
($clientArtist2 = self::createAdditionalPantherClient(['browser' => static::FIREFOX]))->request('GET', '/artists/'.$artist2Id);
7777

7878
$client->request('GET', '/songs');
7979

@@ -93,7 +93,7 @@ public function testExpressionLanguageBroadcast(): void
9393
public function testBroadcastWithProxy(): void
9494
{
9595
// testing that Artist is updated, even though it's saved as Proxy
96-
($client = self::createPantherClient())->request('GET', '/artistFromSong');
96+
($client = self::createPantherClient(['browser' => static::FIREFOX]))->request('GET', '/artistFromSong');
9797

9898
// submit first time to create the artist
9999
$client->submitForm('Submit');

src/Turbo/tests/TurboFrameTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TurboFrameTest extends PantherTestCase
2020
{
2121
public function testFrame(): void
2222
{
23-
($client = self::createPantherClient())->request('GET', '/');
23+
($client = self::createPantherClient(['browser' => static::FIREFOX]))->request('GET', '/');
2424

2525
$client->clickLink('This block is scoped, the rest of the page will not change if you click here!');
2626
$this->assertSelectorWillContain('body', 'This will replace the content of the Turbo Frame!');

src/Turbo/tests/TurboStreamTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ final class TurboStreamTest extends PantherTestCase
2020
{
2121
public function testStream(): void
2222
{
23-
($client = self::createPantherClient())->request('GET', '/');
23+
($client = self::createPantherClient(['browser' => static::FIREFOX]))->request('GET', '/');
2424

2525
$client->submitForm('Trigger Turbo Stream!');
2626
$this->assertSelectorWillContain('body', 'This div replaces the existing element with the DOM ID "form".');

0 commit comments

Comments
 (0)