Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Ensure that "change" event is fired only once per "setValue" call #44

Open
aik099 opened this issue May 8, 2014 · 1 comment
Open
Labels

Comments

@aik099
Copy link
Member

aik099 commented May 8, 2014

Current results:

  • setValue for input/file: change fires 0 times
  • setValue for textarea: change fires 0 times

Since selectOption, check and uncheck for Sahi does fire change event without us doing manual firing, then I guess it's some bug in SahiClient side.

Tests added in Behat/Mink#495

@aik099 aik099 added the bug label May 8, 2014
@aik099
Copy link
Member Author

aik099 commented Jun 19, 2014

There is output from running latest test suite, that is relevant to this issue:

11) Behat\Mink\Tests\Driver\Js\ChangeEventTest::testSetValueChangeEvent with data set "input default" ('the-input-default', 'from empty', 'from existing')
initial value setting triggers change event
Failed asserting that 0 matches expected '1'.

.../vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php:150
.../vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php:48

12) Behat\Mink\Tests\Driver\Js\ChangeEventTest::testSetValueChangeEvent with data set "input text" ('the-input-text', 'from empty', 'from existing')
initial value setting triggers change event
Failed asserting that 0 matches expected '1'.

.../vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php:150
.../vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php:48

13) Behat\Mink\Tests\Driver\Js\ChangeEventTest::testSetValueChangeEvent with data set "input email" ('the-email', 'from empty', 'from existing')
initial value setting triggers change event
Failed asserting that 0 matches expected '1'.

.../vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php:150
.../vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php:48

14) Behat\Mink\Tests\Driver\Js\ChangeEventTest::testSetValueChangeEvent with data set "textarea" ('the-textarea', 'from empty', 'from existing')
initial value setting triggers change event
Failed asserting that 0 matches expected '1'.

.../vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php:150
.../vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php:48

15) Behat\Mink\Tests\Driver\Js\ChangeEventTest::testSetValueChangeEvent with data set "file" ('the-file', 'from empty', 'from existing')
initial value setting triggers change event
Failed asserting that 0 matches expected '1'.

.../vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php:150
.../vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php:48

16) Behat\Mink\Tests\Driver\Js\ChangeEventTest::testSetValueChangeEvent with data set "select" ('the-select', '30')
initial value setting triggers change event
Failed asserting that 0 matches expected '1'.

.../vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php:150
.../vendor/behat/mink/driver-testsuite/tests/Js/ChangeEventTest.php:48

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant