Skip to content

Conversation

@amandassa-tR
Copy link

Description

This PR introduces testRigor integration to the Magento Functional Testing Framework (MFTF), providing developers with a modern, AI-powered alternative for end-to-end testing that complements the existing MFTF capabilities.

Key Features:

  • Zero Setup Complexity: MFTF automatically downloads and installs Node.js and testRigor CLI on first run
  • AI-Powered Testing: Natural language commands and automatic element recognition for stable tests
  • Advanced Capabilities: Email testing, visual testing, 2FA support, and cross-platform testing
  • Pre-built Test Cases: 9 critical Magento workflows including customer management, checkout, and product features
  • CI/CD Ready: Seamless integration with GitHub Actions and other CI/CD platforms

New MFTF Command:

bin/mftf run:testrigor

Configuration:

  • Local development via .env file
  • CI/CD via GitHub secrets and variables
  • Automatic dependency management
  • Comprehensive troubleshooting support

New Test Cases Include:

  1. Customer Account Management
  2. Product Search Functionality
  3. Complete Purchase Flow
  4. Category Navigation and Filtering
  5. Product Configuration (Size/Color)
  6. Product Detail Page Functionality
  7. Wishlist Management
  8. Product Comparison
  9. Product Reviews and Ratings

Technical Implementation:

  • Self-contained framework with local dependency installation
  • Environment variable support for both local and CI/CD
  • Backward compatibility with existing MFTF workflow
  • Comprehensive error handling and troubleshooting

Documentation:

  • Complete setup guide in dev/tests/testRigor/README.md
  • Public execution links for pre-built test cases
  • Integration examples for local and CI/CD environments
  • Troubleshooting guide for common issues

Fixed Issues (if relevant)

N/A - This is a new feature addition

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/verification tests (if applicable)
  • All automated tests passed successfully (all builds are green)
  • Changes to Framework doesn't have backward incompatible changes for tests or have related Pull Request with fixes to tests

Additional Notes:

  • This integration maintains full backward compatibility with existing MFTF functionality
  • The testRigor integration is optional and doesn't affect existing test execution
  • All dependencies are managed automatically with no manual installation required
  • Comprehensive documentation and examples are provided for easy adoption

Resources:

Add ci integration

Refactor PHP version specification and enhance testRigor workflow with connection verification and artifact upload
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.

1 participant