Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: initial commit #964

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

prashantabellad
Copy link
Contributor

Description of the Change

Closes #

How to test the Change

Changelog Entry

Added - New feature
Changed - Existing functionality
Deprecated - Soon-to-be removed feature
Removed - Feature
Fixed - Bug fix
Security - Vulnerability

Credits

Props @username, @username2, ...

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

Copy link

what-the-diff bot commented Nov 25, 2024

PR Summary

  • Enhancements to Environment Variables
    An update has been made to the sample environment variable file (.env.sample) to include three new variables: BASE_URL, WP_ADMIN_USERNAME, and WP_ADMIN_PASSWORD. This will make it easier to customize the application's behavior according to each specific environment.

  • Improvements to Playwright Configuration
    The Playwright configuration file (playwright.config.js) has been modified to use the BASE_URL from the environment variables instead of a pre-set URL. This allows greater flexibility in testing against different server URLs.

  • Refactoring Test Files
    Several test files were refactored to use the admin username from environment variables instead of a hardcoded testuser1, allowing for more flexible and customized tests.

  • Removal of Redundant user-login.js File
    The user-login.js file, which contained an outdated loginUser function, was removed to streamline the codebase.

  • Updates to Login Function
    The login function in common.js was enhanced to accept a new goToLoginPage parameter. This makes it possible for tests to skip directly to the login page if needed, thereby improving testing efficiency.

  • BaseUrl Adjustment in gatherpress-event-nonLoggedIn.spec.js File
    In the gatherpress-event-nonLoggedIn.spec.js file, the hardcoded base URL was changed to a relative path ('/'). This makes it easier for the file to adapt to any server URL.

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