You are here

public function ChangeEventTest::testIssue255 in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php \Behat\Mink\Tests\Driver\Js\ChangeEventTest::testIssue255()

'change' event should be fired after selecting an <option> in a <select>.

TODO check whether this test is redundant with other change event tests.

File

vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php, line 17

Class

ChangeEventTest
@group slow

Namespace

Behat\Mink\Tests\Driver\Js

Code

public function testIssue255() {
  $session = $this
    ->getSession();
  $session
    ->visit($this
    ->pathTo('/issue255.html'));
  $session
    ->getPage()
    ->selectFieldOption('foo_select', 'Option 3');
  $session
    ->wait(2000, '$("#output_foo_select").text() != ""');
  $this
    ->assertEquals('onChangeSelect', $this
    ->getAssertSession()
    ->elementExists('css', '#output_foo_select')
    ->getText());
}