Skip to content

v1.0.4

Latest

Choose a tag to compare

@nayakprashant nayakprashant released this 01 Nov 14:01
67fc31f

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

  1. Update imports in test files to use HomePage, CommonPage, and LoginPage
  2. Update page object initialization and variable names
  3. Update locator references to use new page objects
  4. 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: