- Changed the locator for the GitHub sign-in button in the sign-up page tests to use the input type and value attributes for better accuracy.
- This update enhances the reliability of the E2E tests by ensuring the correct element is targeted during the GitHub OAuth flow.
- Replaced the existing GitHub OAuth client ID and secret with new environment variables for E2E testing.
- This change ensures that the E2E tests use the correct secrets for GitHub OAuth integration, improving test reliability.
- Included SOCIAL_GITHUB_OAUTH_CLIENT_ID and SOCIAL_GITHUB_OAUTH_CLIENT_SECRET in the E2E test workflow for GitHub OAuth integration.
- This enhancement supports the recent implementation of GitHub social login in the application.
- Added support for GitHub social login in the sign-up process.
- Updated the sign-up page to include a GitHub login button and related methods.
- Enhanced E2E tests to validate the complete GitHub OAuth flow, ensuring users can authenticate and return to the application successfully.
- Updated documentation to reflect the new test case for GitHub social sign-up.
- Updated the `verifyLogoutSuccess` function to use a regex for URL verification.
- Added new helper functions `getSession` and `verifySessionValid` to streamline session validation in tests, ensuring that session data is correctly retrieved and validated.
- Removed the `verifyLoadingState` method from the `SignUpPage` class as it was redundant.
- Updated comments in the sign-up test to enhance clarity and focus on key actions.
- Added a call to `verifyNoErrors` to ensure no errors occur during the sign-up process.
- Documented test case details including flow steps, expected results, and key verification points.
- Enhanced existing sign-up test specifications to include relevant tags for better categorization and tracking.
- Introduced a BasePage class to encapsulate common functionality for page objects, improving code reusability and maintainability.
- Created new page objects for HomePage, SignInPage, and SignUpPage to streamline the sign-up and login processes in tests.
- Added comprehensive sign-up flow tests to validate user registration and login functionality, ensuring a smooth user experience.
- Updated Playwright configuration to support new test structures and improve overall test organization.
- Added missing commas and improved formatting in the Playwright configuration file to enhance readability and maintain consistency across the codebase.
- Added multiple authentication setup files for different user roles (admin, manage scans, manage integrations, etc.) to streamline end-to-end testing.
- Introduced a helper function to authenticate users and save their state for reuse in tests.
- Updated Playwright configuration to include new authentication projects.
This change improves the testing framework by allowing for more comprehensive and role-specific user authentication scenarios.