Skip to content

Resolved the issue in the wishlist - #20

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

Resolved the issue in the wishlist#20
TAMILKUMAR0027 merged 4 commits into
mainfrom
Prasanna

Conversation

@14-Prasanna

@14-Prasanna 14-Prasanna commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Pull Request Details

PR Information


Team Information


Related Issue

Fixes #
Closes #

Summary

Implements wishlist automation test suite covering add/remove product flows (via home page, top collection, and search), fixes WishListActions/BaseAction integration issues, adds post-login home page navigation, and introduces structured logging across wishlist actions and tests.

Detailed Changes

Added

  • actions/wishlist_actions.pyWishListActions class with methods to add/remove products, navigate wishlist, handle success/removal messages, and return to home page after login.
  • tests/test_wishlist.py — Test suite for adding single/multiple products, adding via search, and removing single/multiple products from wishlist.
  • actions/launch_actions.pyLaunchActions class for homepage verification (URL, title, logo).
  • tests/test_home.py — Smoke test for homepage launch verification.
  • Logging via utils/loggerCreator.get_logger across wishlist actions and tests.

Modified

  • pages/wishlist_page.py — Centralized locators for wishlist-related elements.
  • tests/test_wishlist.py — Updated login flow to reuse HomePageAction, LoginPageAction, AccountPageAction from existing login tests; replaced hardcoded credentials with Excel data provider.

Removed

  • Incorrect/duplicate BaseAction import and constructor mismatch (driver, waitdriver).
  • Hardcoded login credentials in wishlist test fixture.

Refactored

  • WishListActions.__init__ aligned with BaseAction(driver) signature.
  • Replaced raw Exception with RuntimeError for unexpected alerts.
  • Extracted magic strings/numbers into module-level constants (URLs, timeouts, product names, keywords).
  • Added _assert_success_message, _assert_removal_message, _ensure_product_in_wishlist helper functions to reduce duplication in tests.

Type of Change

  • Bug Fix
  • New Feature
  • Enhancement
  • Refactoring
  • Test Automation
  • Performance Improvement
  • 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

Test execution logs available at logs/logs.log. Console output confirms successful login, home page navigation, and wishlist add/remove flows for iMac, Apple Cinema 30, iPod Nano, and iPod Shuffle.

Configuration Changes

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

Impact Analysis

Affected Modules:

  • actions/wishlist_actions.py
  • tests/test_wishlist.py
  • pages/wishlist_page.py

Potential Risks:

  • Low

Rollback Plan:

  • Revert this PR branch to restore the previous WishListActions implementation and test file; no shared/global modules were altered.

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:

  • Please verify HOME_PAGE_URL constant matches the environment-specific base URL before merging to other environments.

Final Approval

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@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.

Reviewed

@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.

Good work

Comment thread configuration/config.ini

@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.

Put config.ini file in the gitignore

@TAMILKUMAR0027
TAMILKUMAR0027 merged commit 525fb76 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants