Skip to content

Commit 02737a4

Browse files
committed
minor #2234 [Turbo][Testing] Fix to the right test (GrinWay)
This PR was merged into the 2.x branch. Discussion ---------- [Turbo][Testing] Fix to the right test | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | Fixing the test | License | MIT In order to test the Turbo loading you don't have to use `assertSelectorTextContains` method, instead of it use `assertSelectorWillContain` cuz it's async javascript Commits ------- 535439f [Turbo][Testing] Fix to the right test
2 parents b255914 + 535439f commit 02737a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Turbo/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Symfony.
276276
$client->request('GET', '/');
277277

278278
$client->clickLink('This block is scoped, the rest of the page will not change if you click here!');
279-
$this->assertSelectorTextContains('body', 'This will replace the content of the Turbo Frame!');
279+
$this->assertSelectorWillContain('body', 'This will replace the content of the Turbo Frame!');
280280
}
281281
}
282282

0 commit comments

Comments
 (0)