diff --git a/tests/Custom/LargePageClickTest.php b/tests/Custom/LargePageClickTest.php new file mode 100644 index 00000000..d27aa301 --- /dev/null +++ b/tests/Custom/LargePageClickTest.php @@ -0,0 +1,26 @@ +getSession()->visit($this->pathTo('/multi_input_form.html')); + + // Add a large amount of br tags so that the button is not in view. + $large_page = str_repeat('
', 2000); + $script = <<getSession()->executeScript($script); + + $page = $this->getSession()->getPage(); + $page->pressButton('Register'); + $this->assertStringContainsString('no file', $page->getContent()); + } +}