Commit graph

17 commits

Author SHA1 Message Date
maguire-arman
6a78ac5807 Renames NODE_ENV to PLAYWRIGHT_ENV
Updates the environment variable name from NODE_ENV to PLAYWRIGHT_ENV across the project.

This change ensures consistency and clarity in environment variable usage, specifically for Playwright configurations.
2025-08-05 13:34:58 -04:00
maguire-arman
a9682c960d Enables Jira ticket creation based on regression status
Reverts the hardcoded disabling of Jira ticket creation and enables it based on the `IS_REGRESSION` environment variable. This allows test subtasks and bug tickets to be created automatically when tests are not run in regression mode.
2025-07-14 14:03:34 -04:00
maguire-arman
99abc2ec7b Adds JUnit reporter
Adds the JUnit reporter to the Playwright configuration.

This allows for generating JUnit-compatible XML reports, which can be useful for integrating with CI/CD systems and other tools that consume JUnit reports.
2025-07-10 11:53:27 -04:00
maguire-arman
db8efa267d Adds Ortoni reporter
Adds the Ortoni reporter to the Playwright configuration.

This change ensures that Ortoni reports are generated both in CI and local environments, providing comprehensive test result analysis.
2025-07-10 10:09:10 -04:00
maguire-arman
2e514c8671 Updates test report folder path
Updates the folder path for test reports to be 'ortoni-report' in CI environments, otherwise defaults to 'test-results'.

The conditional logic ensures that test results are stored in a dedicated 'ortoni-report' folder during CI runs, enabling more manageable reports.

The changes related to jiraCreationPermissions are commented out as TODOs and will be changed back in the future.
2025-07-09 13:09:15 -04:00
Chase King
626dc854e7 Implemented playwright core 2025-06-17 12:15:04 -04:00
maguire-arman
20fb39ed48 Adds Jira reporter and configures reports
Adds the playwright-jira-reporter to the project.

Configures both ortoni and jira reporters, including setting up
Jira API authentication and project keys.

The ortoni report filename is now dynamically generated with a date
stamp to prevent overwriting.

Updates the reporter configuration to conditionally include Jira reporter
when running in CI.
2025-06-06 10:06:36 -04:00
maguire-arman
e3ba8d93f2 Increases timeout and corrects address
Increases the global test timeout to prevent failures on slower environments.

Updates the address in a test case to use correct formatting and abbreviation
to ensure the test passes consistently.
2025-05-28 14:33:19 -04:00
maguire-arman
998706c440 Removes output directory configuration
Removes the explicit `outputDir` configuration from the Playwright config.

The default output directory is sufficient and allows for more flexibility in test execution and reporting.
2025-05-09 15:49:22 -04:00
maguire-arman
cd5ddf946a Updates report configuration and project name
Updates the report configuration to adjust folder paths, logo locations, and the project name, ensuring correct paths and the proper project is referenced in reports.
2025-05-09 15:34:12 -04:00
maguire-arman
35e804e979 Updates environment config and test grep
Updates the environment configuration to correctly resolve the .env files path.
Also updates the test grep in README to use Alert tag.
2025-05-08 16:31:43 -04:00
maguire-arman
a2ca9134d1 Initializes Playwright test framework
Sets up the core infrastructure for Playwright-based automated testing, including:
- Docker support for consistent environments
- Azure Pipelines configuration for CI/CD
- Page Object Model structure for maintainable tests
- Test data, validation, and rule engine implementation
- Test configuration for alerts and other scenarios
2025-05-08 15:45:05 -04:00
Scott Kiener
32c55fd762 Revert "Merge pull request #2405 from Safelite/feature/CASH-480"
This reverts commit b2d0038e45, reversing
changes made to d509215643.
2025-04-30 10:03:16 -04:00
maguire-arman
c25ec11f92 Configures test result output directory
Configures the test result output directory to 'artifacts/test-results'.
This change centralizes test artifacts for easier access and management.
2025-04-08 15:43:50 -04:00
maguire-arman
2e69f741c0 Updates artifacts folder path
Updates the path to the artifacts folder in the Playwright config.

This ensures that test results are stored in the correct location
within the project structure.
2025-04-08 11:29:47 -04:00
maguire-arman
07fe97165e Loads env vars only when not in CI
Ensures environment variables are loaded from `.env` files only when not running in a CI environment.

This prevents overwriting variables already present in the CI environment.

Adds an example env file for local development.
2025-04-08 09:26:27 -04:00
maguire-arman
404dda6556 Adds Playwright test framework for FMG
Initial commit of the Playwright test framework, including:
- Configuration files for Playwright, Docker, and Sauce Labs
- Test case structure and page object models
- CI/CD pipeline configuration
- Utilities and business logic implementations

This framework will be used for end-to-end testing of the FMG application.
2025-04-07 15:40:31 -04:00