Skip to content

Commit 7583bf0

Browse files
smnandrekbond
authored andcommitted
Add shorter timeout to avoid minutes-long tests
1 parent b5e828e commit 7583bf0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Turbo/tests/BroadcastTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ public function testExpressionLanguageBroadcast(): void
5757
($client = self::createPantherClient())->request('GET', '/artists');
5858

5959
$client->submitForm('Submit', ['name' => self::ARTIST_NAME_1]);
60-
$client->waitForElementToContain('#artists div:nth-child(1)', self::ARTIST_NAME_1);
60+
$client->waitForElementToContain('#artists div:nth-child(1)', self::ARTIST_NAME_1, 5);
61+
6162
$client->submitForm('Submit', ['name' => self::ARTIST_NAME_2]);
62-
$client->waitForElementToContain('#artists div:nth-child(2)', self::ARTIST_NAME_2);
63+
$client->waitForElementToContain('#artists div:nth-child(2)', self::ARTIST_NAME_2, 5);
6364

6465
$crawlerArtist = $client->getCrawler();
6566

@@ -78,7 +79,7 @@ public function testExpressionLanguageBroadcast(): void
7879

7980
$client->submitForm('Submit', ['title' => self::SONG_TITLE, 'artistId' => $artist1Id]);
8081

81-
$clientArtist1->waitForElementToContain('#songs div', self::SONG_TITLE);
82+
$clientArtist1->waitForElementToContain('#songs div', self::SONG_TITLE, 5);
8283

8384
$songsElement = $clientArtist2->findElement(WebDriverBy::cssSelector('#songs'));
8485

0 commit comments

Comments
 (0)