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

Tests: share queue/browser handling for all worker types #5460

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

timmywil
Copy link
Member

@timmywil timmywil commented Mar 28, 2024

Summary

  • one queue to rule them all: browserstack, selenium, and jsdom
  • retries and hard retries are now supported in selenium
  • selenium tests now re-use browsers in the same way as browserstack

This simplifies things in a way that will be easier to manage across projects. In fact, we can consider adding browserstack tests to UI and it wouldn't change much. Granted, we still may not want to do that because it adds the burden of support for each browser tested.

Sample test run to make sure nothing broke: https://github.com/timmywil/jquery/actions/runs/8468961534/job/23203167696

Will make a 3.x PR when this one gets through review.

Checklist

- one queue to rule them all: browserstack, selenium, and jsdom
- retries and hard retries are now supported in selenium
- selenium tests now re-use browsers in the same way as browserstack
@timmywil timmywil requested a review from mgol March 28, 2024 14:44
@timmywil timmywil added the Tests label Mar 28, 2024
@timmywil timmywil added this to the 4.0.0 milestone Mar 28, 2024
Copy link
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

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

Nice work! I have a few questions/remarks.

test/runner/browsers.js Show resolved Hide resolved
test/runner/command.js Show resolved Hide resolved
test/runner/browsers.js Show resolved Hide resolved
test/runner/run.js Show resolved Hide resolved
test/runner/run.js Show resolved Hide resolved
Copy link
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

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

LGTM

@timmywil timmywil merged commit 284b082 into jquery:main Apr 1, 2024
13 checks passed
@timmywil timmywil deleted the dry-test branch April 1, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants