feat: added playwright capabilities to close_tab action #583
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR adds playwright capabilities to the "close_tab" action. It also enables, closing tabs using tab title and tab index. If the tab title, or tab index is not provided, the the action will close the last active tab.
This action now takes "playwright" as an optional parameter. If the user provides "true" in the playwright parameter, then playwright will connect through a remote debugging port and perform this action. Otherwise, selenium will perform the action.
Related Ticket
Fixes #[https://dev.zeuz.ai/Home/EditTask/TASK-922/]
Testing
Frontend Testing
Backend Testing
Performance Impact
Screenshots (if UI changes)
[Add screenshots]
New Dependencies
Package:
pytest-covLicense: MIT
Reason: Code coverage reporting for unit tests
Package:
pytest-mockLicense: MIT
Reason: Mocking capabilities for isolated unit testing
Package:
pytest-htmlLicense: MIT
Reason: HTML test report generation
Package:
pytest-xdistLicense: MIT
Reason: Parallel test execution for faster test runs
Package:
coverageLicense: Apache 2.0
Reason: Code coverage measurement and reporting