diff --git a/tests/Unit/ElementResolverTest.php b/tests/Unit/ElementResolverTest.php index c820c88a6..ccd97b4bb 100644 --- a/tests/Unit/ElementResolverTest.php +++ b/tests/Unit/ElementResolverTest.php @@ -148,6 +148,7 @@ public function test_format_correctly_formats_selectors() $this->assertSame('prefix #first-third', $resolver->format('@modal-third')); $this->assertSame('prefix [dusk="missing-element"]', $resolver->format('@missing-element')); $this->assertSame('prefix [dusk="missing-element"] > div', $resolver->format('@missing-element > div')); + $this->assertSame('prefix div > [dusk="missing-element"]', $resolver->format('div > @missing-element')); } public function test_find_by_id_with_colon()