Skip to content

Fix broken clicking on firefox - #71

Closed
uuf6429 wants to merge 1 commit into
mainfrom
bugfix/fix-firefox-click
Closed

uuf6429 wants to merge 1 commit into
mainfrom
bugfix/fix-firefox-click

Conversation

@uuf6429

@uuf6429 uuf6429 commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

This should fix the failures here (I was able to reproduce the issues locally): https://github.com/minkphp/webdriver-classic-driver/actions/runs/37438761637/job/112187270868?pr=65

@uuf6429
uuf6429 requested a review from aik099 October 7, 2026 22:35
@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

❌ 8 Tests Failed:

Tests completed Failed Passed Skipped
226 8 218 12
View the top 3 failed test(s) by shortest run time
Behat.Mink.Tests.Driver.Form.SelectTest::testElementSelectedStateCheck with data set #0
Stack Traces | 0.0372s run time
Behat\Mink\Tests\Driver\Form\SelectTest::testElementSelectedStateCheck with data set #0 ('select_number', '30', 'thirty')
Behat\Mink\Exception\ElementNotFoundException: Form field with id|name|label|value "select_number" not found.

.../mink/src/WebAssert.php:731
.../tests/Form/SelectTest.php:72
Behat.Mink.Tests.Driver.Form.Html5Test::testHtml5FormAction
Stack Traces | 0.0385s run time
Behat\Mink\Tests\Driver\Form\Html5Test::testHtml5FormAction
Behat\Mink\Exception\ElementNotFoundException: Form field with id|name|label|value|placeholder "first_name" not found.

.../src/Element/TraversableElement.php:165
.../tests/Form/Html5Test.php:137
Behat.Mink.Tests.Driver.Form.GeneralTest::testSetInvalidValueInField with data set "file field with true"
Stack Traces | 0.0519s run time
Behat\Mink\Tests\Driver\Form\GeneralTest::testSetInvalidValueInField with data set "file field with true" ('about', true)
Behat\Mink\Exception\ElementNotFoundException: Element with named "id_or_name about" not found.

.../mink/src/WebAssert.php:465
.../tests/Form/GeneralTest.php:364
phpvfscomposer:.../phpunit/phpunit/phpunit:106
Behat.Mink.Tests.Driver.Form.Html5Test::testHtml5FormButtonAttribute
Stack Traces | 0.053s run time
Behat\Mink\Tests\Driver\Form\Html5Test::testHtml5FormButtonAttribute
Behat\Mink\Exception\ElementNotFoundException: Form field with id|name|label|value "first_name" not found.

.../mink/src/WebAssert.php:731
.../tests/Form/Html5Test.php:67
Behat.Mink.Tests.Driver.Js.EventsTest::testDoubleClick
Stack Traces | 0.159s run time
Behat\Mink\Tests\Driver\Js\EventsTest::testDoubleClick
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'double clicked'
+'single clicked'

.../tests/Js/EventsTest.php:33
Behat.Mink.Tests.Driver.Basic.NavigationTest::testLinks
Stack Traces | 0.182s run time
Behat\Mink\Tests\Driver\Basic\NavigationTest::testLinks
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'http://host.docker.internal:8002/redirect_destination.html'
+'about:blank'

.../tests/Basic/NavigationTest.php:52
Behat.Mink.Tests.Driver.Form.GeneralTest::testAdvancedFormSecondSubmit
Stack Traces | 0.207s run time
Behat\Mink\Tests\Driver\Form\GeneralTest::testAdvancedFormSecondSubmit
Failed asserting that '<html><head>\n
    <title>ADvanced Form</title>\n
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">\n
</head>\n
<body>\n
    <h1>ADvanced Form Page</h1>\n
\n
    <form method="POST" enctype="multipart/form-data" action="advanced_form_post.php">\n
        <input name="first_name" value="Firstname" type="text">\n
        <input id="lastn" name="last_name" value="Lastname" type="text">\n
        <label for="email">\n
            Your email:\n
            <input type="email" id="email" name="email" value="your@email.com">\n
        </label>\n
\n
        <select name="select_number">\n
            <option value="10">ten</option>\n
            <option selected="selected" value="20">twenty</option>\n
            <option value="30">thirty</option>\n
        </select>\n
\n
        <label>\n
            <span><input type="radio" name="sex" value="m"> m</span>\n
            <span><input type="radio" name="sex" value="w" checked="checked"> w</span>\n
        </label>\n
\n
        <input type="checkbox" name="mail_list" checked="checked" value="on">\n
        <input type="checkbox" name="agreement" value="yes">\n
\n
        <textarea name="notes">original notes</textarea>\n
\n
        <input type="file" name="about">\n
\n
        <input type="submit" name="submit" value="Register">\n
        <input type="submit" name="submit" value="Login">\n
    </form>\n
\n
\n
</body></html>' contains "agreement = `off`,".

.../tests/Form/GeneralTest.php:329
phpvfscomposer:.../phpunit/phpunit/phpunit:106
Behat.Mink.Tests.Driver.Basic.NavigationTest::testPageControls
Stack Traces | 0.279s run time
Behat\Mink\Tests\Driver\Basic\NavigationTest::testPageControls
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'http://host.docker.internal:8002/randomizer.php'
+'about:blank'

.../tests/Basic/NavigationTest.php:31
Behat.Mink.Tests.Driver.Form.GeneralTest::testBasicGetForm
Stack Traces | 0.28s run time
Behat\Mink\Tests\Driver\Form\GeneralTest::testBasicGetForm
Behat\Mink\Exception\ElementNotFoundException: Element matching css "div" not found.

.../mink/src/WebAssert.php:465
.../tests/Form/GeneralTest.php:133
phpvfscomposer:.../phpunit/phpunit/phpunit:106
Behat.Mink.Tests.Driver.Basic.CookieTest::testIssue140
Stack Traces | 0.32s run time
Behat\Mink\Tests\Driver\Basic\CookieTest::testIssue140
Failed asserting that null matches expected 'some:value;'.

.../tests/Basic/CookieTest.php:25
phpvfscomposer:.../phpunit/phpunit/phpunit:106
Behat.Mink.Tests.Driver.Form.Html5Test::testHtml5FormRadioAttribute
Stack Traces | 0.377s run time
Behat\Mink\Tests\Driver\Form\Html5Test::testHtml5FormRadioAttribute
Failed asserting that '<html><head>\n
    <meta charset="UTF-8">\n
    <title>HTML5 form attribute test</title>\n
</head>\n
<body>\n
    <form action="advanced_form_post.php" method="POST" id="test-form">\n
        <input name="sex" type="radio" value="m" id="sex_m">\n
        <input name="sex" type="radio" value="invalid" form="another" id="sex_invalid" checked="checked">\n
        <input type="submit" value="Submit in form">\n
    </form>\n
    <input name="sex" type="radio" form="test-form" value="f" id="sex_f" checked="checked">\n
    <form id="another" method="post" action="advanced_form_post.php"></form>\n
\n
\n
</body></html>' contains "  sex = `m`,".

.../tests/Form/Html5Test.php:58
phpvfscomposer:.../phpunit/phpunit/phpunit:106
Behat.Mink.Tests.Driver.Form.GeneralTest::testAdvancedForm
Stack Traces | 0.385s run time
Behat\Mink\Tests\Driver\Form\GeneralTest::testAdvancedForm
Failed asserting that '<html><head>\n
    <title>ADvanced Form</title>\n
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">\n
</head>\n
<body>\n
    <h1>ADvanced Form Page</h1>\n
\n
    <form method="POST" enctype="multipart/form-data" action="advanced_form_post.php">\n
        <input name="first_name" value="Firstname" type="text">\n
        <input id="lastn" name="last_name" value="Lastname" type="text">\n
        <label for="email">\n
            Your email:\n
            <input type="email" id="email" name="email" value="your@email.com">\n
        </label>\n
\n
        <select name="select_number">\n
            <option value="10">ten</option>\n
            <option selected="selected" value="20">twenty</option>\n
            <option value="30">thirty</option>\n
        </select>\n
\n
        <label>\n
            <span><input type="radio" name="sex" value="m"> m</span>\n
            <span><input type="radio" name="sex" value="w" checked="checked"> w</span>\n
        </label>\n
\n
        <input type="checkbox" name="mail_list" checked="checked" value="on">\n
        <input type="checkbox" name="agreement" value="yes">\n
\n
        <textarea name="notes">original notes</textarea>\n
\n
        <input type="file" name="about">\n
\n
        <input type="submit" name="submit" value="Register">\n
        <input type="submit" name="submit" value="Login">\n
    </form>\n
\n
\n
</body></html>' contains "no file".

.../tests/Form/GeneralTest.php:147
Behat.Mink.Tests.Driver.Js.JavascriptTest::testAriaRoles
Stack Traces | 0.517s run time
Behat\Mink\Tests\Driver\Js\JavascriptTest::testAriaRoles
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'http://host.docker.internal:8002/index.html'
+'about:blank'

.../tests/Js/JavascriptTest.php:18
Behat.Mink.Tests.Driver.Form.SelectTest::testMultiselect
Stack Traces | 0.673s run time
Behat\Mink\Tests\Driver\Form\SelectTest::testMultiselect
Failed asserting that '<html><head>\n
    <title>Multiselect Test</title>\n
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">\n
</head>\n
<body>\n
    <h1>Multiselect Test</h1>\n
\n
    <form method="POST" action="advanced_form_post.php">\n
        <select name="select_without_option"></select>\n
\n
        <select name="select_first_option_is_selected_by_default">\n
            <option value="1">first</option>\n
            <option value="2">second</option>\n
        </select>\n
\n
        <select name="select_number">\n
            <option value="10">ten</option>\n
            <option selected="selected" value="20">twenty</option>\n
            <option value="30">thirty</option>\n
        </select>\n
\n
        <select name="select_multiple_numbers[]" multiple="multiple">\n
            <option value="1">one</option>\n
            <option value="2">two</option>\n
            <option value="3">three</option>\n
        </select>\n
\n
        <select name="select_multiple_values[]" multiple="multiple">\n
            <option value="1">one</option>\n
            <option value="2" selected="selected">two</option>\n
            <option value="3" selected="selected">three</option>\n
        </select>\n
\n
        <input type="submit" name="submit" value="Register">\n
    </form>\n
\n
\n
</body></html>' contains "  agreement = `off`,
  select_first_option_is_selected_by_default = `1`,
  select_multiple_numbers = array(
    0 = `1`,
    1 = `3`,
  ),
  select_multiple_values = array(
    0 = `2`,
  ),
  select_number = `30`,".

.../tests/Form/SelectTest.php:61
phpvfscomposer:.../phpunit/phpunit/phpunit:106
Behat.Mink.Tests.Driver.Form.Html5Test::testHtml5Types
Stack Traces | 0.748s run time
Behat\Mink\Tests\Driver\Form\Html5Test::testHtml5Types
Failed asserting that '<html><head>\n
    <meta charset="UTF-8">\n
    <title>HTML5 form attribute test</title>\n
</head>\n
<body>\n
    <form action="advanced_form_post.php" method="POST">\n
        <input name="url" type="url">\n
        <input name="email" type="email">\n
        <input name="number" type="number">\n
        <input name="search" type="search">\n
        <input name="color" type="color">\n
        <input name="date" type="date">\n
        <input name="time" type="time">\n
        <input type="submit" name="submit_button" value="Submit">\n
    </form>\n
\n
\n
</body></html>' contains "  color = `#ff00aa`,
  date = `1111-11-11`,
  email = `mink@example.org`,
  number = `6`,
  search = `mink`,
  submit_button = `Submit`,
  time = `14:12`,
  url = `https://mink.behat.org/`,".

.../tests/Form/Html5Test.php:129
View the full list of 2 ❄️ flaky test(s)
Behat.Mink.Tests.Driver.Form.GeneralTest::testMultiInput

Flake rate in main: 16.25% (Passed 201 times, Failed 39 times)

Stack Traces | 0.506s run time
Behat\Mink\Tests\Driver\Form\GeneralTest::testMultiInput
Failed asserting that '<html><head>\n
    <title>Multi input Test</title>\n
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">\n
</head>\n
<body>\n
    <h1>Multi input Test</h1>\n
\n
    <form method="POST" action="advanced_form_post.php">\n
        <label>\n
            First\n
            <input type="text" name="tags[]" value="tag1">\n
        </label>\n
        <label>\n
            Second\n
            <input type="text" name="tags[]" value="tag2">\n
        </label>\n
        <label>\n
            Third\n
            <input type="text" name="tags[]" value="tag1">\n
        </label>\n
\n
        <input type="submit" name="submit" value="Register">\n
    </form>\n
\n
\n
</body></html>' contains "  tags = array(
    0 = `tag2`,
    1 = `one`,
    2 = `tag3`,
  ),".

.../tests/Form/GeneralTest.php:308
phpvfscomposer:.../phpunit/phpunit/phpunit:106
Behat.Mink.Tests.Driver.Form.GeneralTest::testSubmitEmptyTextarea

Flake rate in main: 25.77% (Passed 72 times, Failed 25 times)

Stack Traces | 0.151s run time
Behat\Mink\Tests\Driver\Form\GeneralTest::testSubmitEmptyTextarea
Failed asserting that '<html lang="en"><head>\n
    <title>Empty textarea submission</title>\n
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
</head>\n
<body>\n
    <h1>Empty textarea submission</h1>\n
    <form method="POST" action="advanced_form_post.php">\n
        <textarea name="textarea"></textarea>\n
        <input type="submit" name="submit" value="Save">\n
    </form>\n
\n
\n
</body></html>' contains "textarea = ``,".

.../tests/Form/GeneralTest.php:349
phpvfscomposer:.../phpunit/phpunit/phpunit:106

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@uuf6429

uuf6429 commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

Ah, I missed #69... please ignore this then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant