You are here

public function ChangeEventTest::testSelectOptionChangeEvent 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::testSelectOptionChangeEvent()

@dataProvider selectOptionChangeEventDataProvider @group change-event-detector

File

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

Class

ChangeEventTest
@group slow

Namespace

Behat\Mink\Tests\Driver\Js

Code

public function testSelectOptionChangeEvent($elementId, $elementValue) {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/element_change_detector.html'));
  $page = $this
    ->getSession()
    ->getPage();
  $input = $this
    ->findById($elementId);
  $this
    ->assertNull($page
    ->findById($elementId . '-result'));
  $input
    ->selectOption($elementValue);
  $this
    ->assertElementChangeCount($elementId);
}