Skip to content

Playwright Migration#277

Merged
mshriver merged 47 commits intomainfrom
playwright
Oct 2, 2025
Merged

Playwright Migration#277
mshriver merged 47 commits intomainfrom
playwright

Conversation

@digitronik
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Sep 9, 2025

Codecov Report

❌ Patch coverage is 95.95376% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.52%. Comparing base (3822ace) to head (fa1ae68).
⚠️ Report is 54 commits behind head on main.

Files with missing lines Patch % Lines
src/widgetastic/widget/select.py 91.17% 3 Missing ⚠️
src/widgetastic/ouia/checkbox.py 80.00% 2 Missing ⚠️
src/widgetastic/utils.py 80.00% 1 Missing ⚠️
src/widgetastic/widget/checkbox.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #277      +/-   ##
==========================================
+ Coverage   86.54%   93.52%   +6.97%     
==========================================
  Files          18       19       +1     
  Lines        2572     2610      +38     
==========================================
+ Hits         2226     2441     +215     
+ Misses        346      169     -177     
Flag Coverage Δ
unittests 93.52% <95.95%> (+6.97%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

digitronik and others added 7 commits September 9, 2025 14:13
Migrate existing docs to playwright.
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.7 → v0.12.9](astral-sh/ruff-pre-commit@v0.12.7...v0.12.9)
- [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](pre-commit/pre-commit-hooks@v5.0.0...v6.0.0)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.9 → v0.12.12](astral-sh/ruff-pre-commit@v0.12.9...v0.12.12)
Copy link
Collaborator

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

this overall looks like a nice simplification

some additional research in making use of the playwright based robustness should be done as we may be able to drop a lot more of the selenium-fragility-handling code

@property
def selected(self):
return self.browser.is_selected(self)
def selected(self) -> bool:
Copy link
Collaborator

Choose a reason for hiding this comment

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

we share a huge portion of the impl with the normal checkbox it seems

return None


class SmartLocator(namedtuple("SmartLocator", ["by", "locator"])):
Copy link
Collaborator

Choose a reason for hiding this comment

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

if we dont actually use themas tuples, a frozen dataclass may be better

@mshriver mshriver changed the title [DO NOT MERGE JUST FOR FULL DIFF] Playwright Migration Playwright Migration Oct 2, 2025
@mshriver mshriver merged commit 4779b72 into main Oct 2, 2025
25 checks passed
@mshriver
Copy link
Collaborator

mshriver commented Oct 2, 2025

@RonnyPfannschmidt completely agree with your assessments, and there will be continued updates to the documentation as well before we release as 2.0.

That being said, I'm going to proceed with this into main so that we can iterate from these commits into wt.patternfly and downstream integrators.

@RonnyPfannschmidt
Copy link
Collaborator

Is there maintenance branch already prepared?

@digitronik
Copy link
Member Author

@mshriver @RonnyPfannschmidt
Thanks for Review!

I will raise one small MR with dataclass

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.

3 participants