Skip to content

Fixes a circular import error between pages/launch.py and actions/launch_actions.py - #22

Merged
TAMILKUMAR0027 merged 2 commits into
mainfrom
Prasanna
Jun 12, 2026
Merged

Fixes a circular import error between pages/launch.py and actions/launch_actions.py#22
TAMILKUMAR0027 merged 2 commits into
mainfrom
Prasanna

Conversation

@14-Prasanna

Copy link
Copy Markdown
Collaborator

Pull Request Details

PR Information


Team Information


Related Issue

Fixes #
Closes #

Summary

Fixes a circular import error between pages/launch.py and actions/launch_actions.py that was causing collection errors for tests/test_launch.py and tests/test_login.py. pages/launch.py no longer imports from actions/, restoring correct page-object/action separation.

Detailed Changes

Added

  • LaunchPages.get_current_url, get_page_title, get_logo methods in pages/launch.py.

Modified

  • pages/launch.py — removed invalid from actions.launch_actions import LaunchActions import that caused a circular dependency with actions/launch_actions.py.

Removed

  • Circular import between pages/launch.py and actions/launch_actions.py.

Refactored

  • pages/launch.py now contains only locators and element accessors (no action-layer imports), per POM convention.

Type of Change

  • Bug Fix
  • New Feature
  • Enhancement
  • Refactoring
  • Performance Improvement
  • Test Automation
  • CI/CD Changes
  • Documentation Update
  • Dependency Upgrade

Testing Performed

Pytest Execution

  • All tests passed
  • Smoke suite passed
  • Sanity suite passed
  • Regression suite passed
  • E2E suite passed
  • Negative test scenarios verified

Browsers Tested

  • Chrome
  • Firefox
  • Headless Chrome
  • Headless Firefox

Evidence

pytest -s -m smoke and pytest -s -m Prasanna executed successfully — test_launch.py::TestHome::test_homepage_verification and test_login.py collect and pass with no import errors.

Configuration Changes

  • config.ini modified
  • pytest.ini modified
  • requirements.txt updated
  • Environment variables added
  • No configuration changes

Impact Analysis

Affected Modules:

  • pages/launch.py
  • actions/launch_actions.py
  • tests/test_launch.py

Potential Risks:

  • Low

Rollback Plan:

  • Revert this commit to restore the previous pages/launch.py; note the previous version had a collection-blocking circular import, so rollback would reintroduce that failure.

Checklist

Code Quality

  • Code follows project standards
  • No hardcoded values
  • Logging added where required
  • Exception handling implemented
  • Unused imports removed
  • PEP8 guidelines followed

Testing

  • Test cases added/updated
  • Existing tests are passing
  • Local execution verified

Documentation

  • README updated
  • Comments added where necessary
  • Documentation updated

CI/CD

  • GitHub Actions passed
  • Build succeeded
  • No merge conflicts

Reviewer Notes

Special instructions for reviewers:

  • Verify no other page object under pages/ imports from actions/ to prevent similar circular import issues.

Final Approval

@TAMILKUMAR0027 TAMILKUMAR0027 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Nice Prasanna Issue is resolved

@Rishwanth-Adhishwar Rishwanth-Adhishwar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Noted,You Removed LaunchPageAction in Pgaes

@14-Prasanna 14-Prasanna changed the title Prasanna Fixes a circular import error between pages/launch.py and actions/launch_actions.py Jun 12, 2026

@raviravi31799-crypto raviravi31799-crypto left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed

@samihamuhabathulla-jpg samihamuhabathulla-jpg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

good

@TAMILKUMAR0027
TAMILKUMAR0027 merged commit 7c32d47 into main Jun 12, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pytest Collection Failure Due to Circular Import Between launch.py and launch_actions.py

5 participants