Repository navigation
Releases
v1.0.4
What's Changed
New Features
- Enhanced Page Object Architecture: Introduced CommonPage and LoginPage objects for better separation of concerns
- Improved Debugging: Added console.log statements in all page object constructors to track page loading
- Better Organization: Renamed KatalonCmsPage to HomePage for semantic clarity
Improvements
- Separated locators into logical page objects:
CommonPage.ts- Common elements (My Account link)LoginPage.ts- Login form elements (username, password, login button, error messages)HomePage.ts- Dashboard elements (dashboard link, user name, logout link)
- Removed duplicate locators and consolidated shared elements
- Cleaner locator naming without "Role" suffix
- Moved test data reading from describe level to test level for better test isolation
- Enhanced logging with page load tracking, configuration load logging, and helper module initialization logging
Breaking Changes
- Page Object Renaming:
KatalonCmsPage→HomePage - Locator Naming Convention:
myAccountLinkRole→myAccountLink(moved to CommonPage)usernameInputRole→usernameInput(moved to LoginPage)passwordInputRole→passwordInput(moved to LoginPage)loginButtonRole→loginButton(moved to LoginPage)errorMessageAlert→errorMessageAlert(moved to LoginPage)
- Test Structure: Test data reading moved from describe block to test body
Migration Guide
- Update imports in test files to use
HomePage,CommonPage, andLoginPage - Update page object initialization and variable names
- Update locator references to use new page objects
- Review test data reading pattern if needed
Files Changed
- New:
pages/CommonPage.ts,pages/LoginPage.ts - Renamed:
pages/KatalonCmsPage.ts→pages/HomePage.ts - Modified: All test files, README.md, and page object files
Testing
All tests pass successfully:
v1.0.3
Release Notes - v1.0.3
🎉 New Features
AI-Assisted Test Generation
- Introduced comprehensive AI prompt template (1.0.3.md) for automating test cases using manual test cases and Playwright codegen
- Added support for generating tests from manual test case Excel files and codegen recorded steps
- Created
test-cases/folder structure for organizing manual test cases and codegen files - Implemented automated test generation workflow with intelligent page object management
- Added CSV-based test data management for AI-generated tests
New Test Suite
- Added
katalon-cms-login-incorrect-password.spec.ts- Tests for error message display with incorrect password - Enhanced test data management with support for multiple test scenarios
✨ Improvements
Locator Strategy Standardization
- Migrated framework to use role-based locators (
getByRole) instead of XPath/CSS selectors - Removed duplicate locators from
KatalonCmsPage.tsfor cleaner code - Updated all test files to use consistent role-based locators:
myAccountLinkRolefor My Account linkusernameInputRolefor username inputpasswordInputRolefor password inputloginButtonRolefor login button
- Enhanced page object creation guidelines to recommend role-based locators
Configuration Enhancements
- Updated
config/qa.env.ts:- Set baseUrl to
https://cms.demo.katalon.com - Increased defaultTimeout to 30000ms for improved reliability
- Set baseUrl to
- Updated
config/ci.env.ts:- Set baseUrl to
https://cms.demo.katalon.com
- Set baseUrl to
- All environments now properly configured for Katalon CMS testing
Documentation Overhaul
- Added comprehensive documentation for 1.0.3.md AI prompt usage including:
- Preparation steps and requirements
- Step-by-step usage instructions
- Example workflow with commands
- Key features and benefits
- Added
test-cases/folder to architecture documentation - Added "Current Test Suite" section documenting existing tests
- Updated all code examples to use role-based locators
- Added framework principle about preferring role-based locators
- Enhanced CSV reader helper documentation with actual examples
- Updated test execution examples
🗑️ Removed
Deprecated Components
- Removed
tests/playwright-dev.spec.ts- Playwright.dev test suite - Removed
pages/PlaywrightDevPage.ts- Playwright.dev page object - Removed reference to deprecated 1.0.2.md AI prompt
- Framework now focuses exclusively on Katalon CMS test suite
📝 Breaking Changes
Locator Naming Convention
- Changed locator names in
KatalonCmsPage.ts:myAccountLink→myAccountLinkRoleusernameInput→usernameInputRolepasswordInput→passwordInputRoleloginButton→loginButtonRole
- All test files updated to use new locator names
- XPath-based duplicate locators removed
Migration Required
- If you have custom tests using the old locator names, update them to use the new role-based locator names
- Tests using XPath/CSS selectors should be migrated to role-based locators for consistency
🧪 Testing
All tests pass successfully:
npx playwright test --project=chromium
# 2 passed (14.2s)
npx playwright test
# 6 passed (chromium, firefox, webkit)v1.0.2
Playwright Automation Framework with AI - v1.0.2
What's New
- Code Review Improvements: Refined the AI-generated code based on code review to improve code quality and maintainability.
- CSV Test Data Support: Added a reusable CSV reader to read test data from CSV files.
- CSV Example Test: Added a sample Playwright test demonstrating how to use CSV-based test data for data-driven automation.
- Test Hooks: Introduced Playwright test hooks to manage test setup and cleanup more effectively.
- README Updates: Updated the README with documentation for the latest framework changes and examples.
This release corresponds to Part 2 of the Playwright Automation Framework with AI video series.
Purpose
This release builds on the initial framework by introducing reusable test data handling, improved test organization, and practical examples for extending Playwright automation with AI assistance.
v1.0.1
Playwright Automation Framework with AI - v1.0.1
This is the initial release of the Playwright Automation Framework built with the help of an AI coding assistant.
The goal of this project is to demonstrate how AI can help establish the foundation of a Playwright test automation framework, while keeping code review and engineering decisions part of the development process.
What's Included
- Playwright Setup: Initial project setup and installation.
- Framework Foundation: Basic project structure and sample Playwright tests.
- Test Execution: Run tests using the Playwright test runner.
- Test Reports: Generate and view Playwright HTML reports.
- AI-Assisted Development: Use an AI coding assistant to create and improve the framework.
- Documentation: Initial project documentation and setup instructions.
Getting Started
- Clone this repository.
- Follow the setup instructions in
README.md. - Run the sample tests using the documented commands.
- View the generated Playwright HTML report.
What's Next?
Future iterations will explore improving the framework with code reviews, test-level hooks, CSV-based test data, and AI-assisted test creation.
This release corresponds to Part 1 of the Playwright Automation Framework with AI video series.
Note: This is a learning project intended to demonstrate framework development practices. Review and adapt the implementation to your application's requirements before using it in a production environment.