Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also test on Selenium 3 #383

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Conversation

aik099
Copy link
Member

@aik099 aik099 commented Feb 23, 2024

Observations

Used selenium/standalone-firefox Docker image chooses the Firefox version like so:

  • Selenium 2.53.1 = Firefox 47
  • Selenium 3.141.59 = Firefox 92

Not sure why, but some of the below tests fail only on Firefox 92.

Used build

https://github.com/minkphp/MinkSelenium2Driver/actions/runs/8015977437/job/21897049068?pr=383

Errors

  1. Behat\Mink\Tests\Driver\Basic\IFrameTest::testIFrame
    WebDriver\Exception\InvalidArgument: data did not match any variant of untagged enum FrameId at line 3 column 1
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
    System info: host: 'fv-az779-213', ip: '10.1.0.12', os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.0-1056-azure', java.version: '1.8.0_292'
    Driver info: driver.version: unknown
  1. Behat\Mink\Tests\Driver\Js\ChangeEventTest::testSetValueChangeEvent with data set "file" ('the-file', '/home/runner/work/MinkSeleniu...e1.txt', '/home/runner/work/MinkSeleniu...e2.txt')
    WebDriver\Exception\InvalidArgument: File not found: /home/runner/work/MinkSelenium2Driver/MinkSelenium2Driver/vendor/mink/driver-testsuite/web-fixtures/file1.txt
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
    System info: host: 'fv-az697-197', ip: '10.1.0.44', os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.0-1056-azure', java.version: '1.8.0_292'
    Driver info: driver.version: unknown
  1. Behat\Mink\Tests\Driver\Js\WindowTest::testWindow
    WebDriver\Exception\NoSuchWindow: Unable to locate window:
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
    System info: host: 'fv-az697-197', ip: '10.1.0.44', os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.0-1056-azure', java.version: '1.8.0_292'
    Driver info: driver.version: unknown

Failures:

  1. Behat\Mink\Tests\Driver\Custom\TimeoutTest::testInvalidTimeoutSettingThrowsException
    Failed asserting that exception of type "\Behat\Mink\Exception\DriverException" is thrown.
  1. Behat\Mink\Tests\Driver\Js\EventsTest::testRightClick
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'right clicked'
    +'single clicked'

Doesn't work in both Chrome & Firefox.

Related issues/pull requests:

Copy link

codecov bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.19%. Comparing base (a6cfcfa) to head (edbd07d).
Report is 3 commits behind head on master.

Current head edbd07d differs from pull request most recent head a2f3652

Please upload reports for the commit a2f3652 to get more accurate results.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #383      +/-   ##
============================================
- Coverage     90.21%   90.19%   -0.03%     
  Complexity      168      168              
============================================
  Files             1        1              
  Lines           470      469       -1     
============================================
- Hits            424      423       -1     
  Misses           46       46              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aik099
Copy link
Member Author

aik099 commented Feb 24, 2024

@stof , the PRs for fixing all failing tests on Selenium 3 were created, except the testRightClick. Please review them.

@aik099 aik099 requested a review from stof February 24, 2024 17:25
@aik099 aik099 force-pushed the also-test-on-selenium3 branch 2 times, most recently from 3158b70 to 92bf29e Compare February 25, 2024 13:25
@aik099 aik099 force-pushed the also-test-on-selenium3 branch from 92bf29e to 2384aa0 Compare February 25, 2024 14:23
Copy link
Member

@uuf6429 uuf6429 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${{ matrix.selenium_version }} should also be used on line 98 like below, otherwise it will conflict with #385:

          name: logs_php-${{ matrix.php }}_selenium-${{ matrix.selenium_version }}_firefox

@aik099 aik099 force-pushed the also-test-on-selenium3 branch from 2384aa0 to edbd07d Compare February 26, 2024 06:18
@aik099
Copy link
Member Author

aik099 commented Feb 26, 2024

${{ matrix.selenium_version }} should also be used on line 98 like below, otherwise it will conflict with #385:

          name: logs_php-${{ matrix.php }}_selenium-${{ matrix.selenium_version }}_firefox

Done.

@aik099 aik099 force-pushed the also-test-on-selenium3 branch from edbd07d to a2f3652 Compare June 29, 2024 03:43
@aik099 aik099 force-pushed the also-test-on-selenium3 branch from a2f3652 to e26c768 Compare October 31, 2024 12:23
@aik099 aik099 force-pushed the also-test-on-selenium3 branch from e26c768 to cd331a0 Compare October 31, 2024 12:30
@aik099
Copy link
Member Author

aik099 commented Oct 31, 2024

Tests, that weren't failing previously:

1) Behat\Mink\Tests\Driver\Custom\TimeoutTest::testInvalidTimeoutSettingThrowsException
Failed asserting that exception of type "\Behat\Mink\Exception\DriverException" is thrown.

@aik099
Copy link
Member Author

aik099 commented Oct 31, 2024

Merging, because created dedicated issues for fixing failing tests.

@aik099 aik099 merged commit 6f4e09d into minkphp:master Oct 31, 2024
2 of 10 checks passed
@aik099 aik099 deleted the also-test-on-selenium3 branch October 31, 2024 20:29
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.

2 participants