Skip to content

[py] Adjust xfail markers for window size/position tests #15638

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

Conversation

cgoldberg
Copy link
Contributor

@cgoldberg cgoldberg commented Apr 18, 2025

User description

💥 What does this PR do?

This PR adds some xfail markers and removes some xfail markers on Python tests to reflect the state of window sizing and positioning in current browser versions.

Window positioning is broken for Firefox on Linux, so we are getting failures in CI. This has been reported to Mozilla.

Edge still has some known issues with window sizing and positioning, so those are now marked.

Chrome has fixed some window positioning issues, so markers were removed.

(This hopefully makes CI green again)


PR Type

Bug fix, Tests


Description

  • Adjusted xfail markers for window size/position tests.

  • Added xfail markers for Firefox and Edge due to known issues.

  • Removed outdated xfail markers for Chrome.

  • Updated test annotations to reflect current browser behavior.


Changes walkthrough 📝

Relevant files
Tests
api_example_tests.py
Adjust `xfail` markers for `test_move_window_position`     

py/test/selenium/webdriver/common/api_example_tests.py

  • Changed xfail marker from Chrome to Edge for
    test_move_window_position.
  • Added xfail marker for Firefox with a specific issue reference.
  • +2/-1     
    window_tests.py
    Update `xfail` markers for window-related tests                   

    py/test/selenium/webdriver/common/window_tests.py

  • Added xfail markers for Edge and Firefox for multiple tests.
  • Removed outdated xfail markers for Chrome.
  • Updated test annotations to align with current browser issues.
  • +6/-2     

    Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.
  • @selenium-ci selenium-ci added the C-py Python Bindings label Apr 18, 2025
    @qodo-merge-pro qodo-merge-pro bot added Review effort 1/5 and removed C-py Python Bindings labels Apr 18, 2025
    Copy link
    Contributor

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No major issues detected

    Copy link
    Contributor

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    @cgoldberg cgoldberg merged commit f5b8d3e into SeleniumHQ:trunk Apr 18, 2025
    7 checks passed
    @cgoldberg cgoldberg deleted the py-adjust-test-markers-window-size-position branch April 18, 2025 05:48
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants