Commit graph

9142 commits

Author SHA1 Message Date
maguire-arman
0b71f997ca Streamlines Playwright report merging in Docker
Removes unnecessary directory listing commands from the Docker container execution within the Playwright test job.

This change simplifies the execution and reduces the noise in the job logs, focusing on the core report merging process. The execution also uses semicolons instead of newlines to separate commands.
2025-07-10 13:39:19 -04:00
maguire-arman
6626e7dc58 Improves debug output in CI workflow
Enhances debugging capabilities in the CI workflow by adding `ls -al` command to print the contents of the playwright-tests directory.
Also, corrects the path for listing test results to use a relative path instead of an absolute path, ensuring it works correctly regardless of the environment.
2025-07-10 12:07:00 -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
91d0ebd63f Updates test results directory path.
Updates the path to the test results directory in the workflow file to reflect the new location.

This ensures the workflow correctly accesses and reports test results.
2025-07-10 10:46:18 -04:00
maguire-arman
6b410c432c Adds debug logging for test execution
Enhances debugging capabilities during test execution by adding logging to capture directory contents. This helps diagnose potential issues related to file access or environment setup within the test environment.
2025-07-10 10:27:10 -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
43027f6d7b Fixes: Removes extra comma from path
Removes an extraneous comma in the path definition, resolving an issue caused by the incorrect path formatting.
2025-07-10 09:43:00 -04:00
maguire-arman
8e4f303ba8 Merge remote-tracking branch 'origin/feature/CASH-836' into feature/CASH-836 2025-07-10 09:40:34 -04:00
maguire-arman
e4b2433816 Updates test case tags for issue tracking
Moves the CASH-836 tag from the HeavyTruck test to the RepairOnly test.

This change ensures that the correct test case is associated with the corresponding issue in the issue tracking system.
2025-07-10 09:40:21 -04:00
maguire-arman
a3c8f8eab3 Using parameterized variables and testing non regression 2025-07-10 09:28:28 -04:00
maguire-arman
67c8f995d0 Updates test case tags
Updates the tags for CashRepairInShopPayPal and CashRepairMobileCreditCard test cases to include the '@CASH-836' tag.
Removes the '@CASH-836' tag from the CashReplaceSplitWindshield test case.
2025-07-09 20:24:43 -04:00
maguire-arman
617b076ef2 Setting up regression run for the night 2025-07-09 20:13:04 -04:00
maguire-arman
9faa3a77fb Revert
Ensures the Playwright test command receives the path
to the test files, which is necessary for proper execution
within the Docker environment.
2025-07-09 17:16:03 -04:00
maguire-arman
d9afd1142d Simplifies Playwright test command
Removes redundant path specification in the Playwright test command within the CI configuration.

This change streamlines the test execution process by eliminating unnecessary repetition of the Playwright path, improving readability and maintainability of the CI pipeline definition.
2025-07-09 16:27:59 -04:00
maguire-arman
5b23242647 Reduces the number of test shards.
Reduces the total number of shards used for parallel test execution from 4 to 2.

This change aims to optimize resource utilization and potentially improve test execution speed, considering factors such as the number of available agents and the characteristics of the test suite.
2025-07-09 16:00:22 -04:00
maguire-arman
17b917cac6 Adds CASH-836 tag to specific tests
Adds the `@CASH-836` tag to `CashRepairInShopAfterPay` and `CashReplaceSplitWindshield` tests.
This addition presumably links these tests to a specific issue or requirement tracked under CASH-836.

Removes unused variables from playwright-test.yml.
2025-07-09 15:31:16 -04:00
maguire-arman
09ee59a583 debug 2025-07-09 15:00:48 -04:00
maguire-arman
9464bc44d7 debug 2025-07-09 14:48:54 -04:00
maguire-arman
d0e8cd4c57 Adds filter value to workflow output
Adds the filter value to the workflow output, providing more visibility into the test selection process during CI runs.
This helps in debugging and verifying the correct test subset is being executed.
2025-07-09 14:43:18 -04:00
maguire-arman
eb64c5105e Adds "@" prefix to Jira card number grep filter.
Updates the grep filter for Jira card numbers to include the "@" prefix, ensuring accurate filtering by test case tag. This ensures that only tests specifically tagged with the Jira card number are executed.
2025-07-09 14:32:31 -04:00
maguire-arman
6e068785a8 added tags to tests 2025-07-09 14:24:38 -04:00
maguire-arman
30aec0a3a3 Disables regression testing
The automated test pipeline now runs without the regression flag enabled.

This change ensures that tests are executed as standard tests, rather than being treated as regression tests.
2025-07-09 14:21:28 -04:00
maguire-arman
53ed7383c4 Adds Playwright test stage for pull requests
Introduces a new stage in the pipeline to run Playwright tests specifically for pull requests.
This ensures that UI tests are executed and pass before merging pull requests, preventing regressions.

The automated testing is now configured to run regression tests.

Uses the source branch from the build context to extract the JIRA card number.
2025-07-09 14:20:17 -04:00
maguire-arman
cd02d42da1 Refactors environment variable handling
Moves environment variable definitions to ensure they are available
before the docker container is created, resolving issues related to
undefined variables during container execution. Also, simplifies the
playwright report merging process by streamlining the execution of
commands within the docker container.
2025-07-09 14:07:50 -04:00
maguire-arman
44541ba00c Refactors automated testing pipelines with template
Migrates automated testing configurations to new pipeline structure.

This change streamlines the test execution process by leveraging templates and parameters for increased flexibility and maintainability. It introduces a dedicated template for Playwright tests, enabling easier configuration and reuse across different testing scenarios.

The previous monolithic pipelines are replaced with modular components, improving readability and reducing redundancy. This also allows for better control over test execution, including shard management and result aggregation.
2025-07-09 13:40:52 -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
maguire-arman
ca4c50f01a Refactors Playwright Dockerfile
Updates the Playwright Dockerfile to streamline the build process.

This change improves the Dockerfile by:

- Using `npm ci` for faster and more reliable dependency installation
- Copying the .npmrc file before copying the code.
- Installing Playwright browsers within the playwright-tests directory.
2025-07-09 13:02:42 -04:00
maguire-arman
6c0947ad32 added managed flow to no comp progressive 2025-07-09 10:51:55 -04:00
maguire-arman
dd7d0221aa Adds managed flow to insurance test data
Adds the `Managed` flow type to the insurance test data.

Specifies an empty payment details object for the insurance flow
to skip the payment method page.
2025-07-09 10:27:26 -04:00
maguire-arman
a515fece15 using develops package-lock.json 2025-07-09 09:47:04 -04:00
maguire-arman
6a89e8a262 fixed packagelock.json 2025-07-09 09:44:52 -04:00
maguire-arman
f104bd6267 Fixed package-lock.json 2025-07-09 09:39:42 -04:00
maguire-arman
b8e969b772 Updates safelite-playwright-core version
Updates the safelite-playwright-core dependency to version 1.0.26.

This change also imports missing modules from the updated safelite-playwright-core package in relevant files.
2025-07-09 09:38:25 -04:00
maguire-arman
92c223487a Updating 836 with 631
Adds a new environment variable to skip content site checks, improving test environment flexibility.
Improves the "nextPage" function in BasePage to handle loader elements and button states more reliably.
Adds support for selecting loss location in CCPolicyInfoPage to reflect claim details accurately.
Updates assertion methods to use Soft assertions for smoother test execution.
Adds a new test case "InsuranceMeemicNearSchoolVerified" to expand test coverage.
2025-07-08 14:59:48 -04:00
maguire-arman
565d9f473e fixes zip alert validation issue
Refactors the vehicle lookup test data structure to improve data handling and flexibility.
Consolidates license plate information into a dedicated object within vehicle details.
2025-06-25 16:25:04 -04:00
maguire-arman
88bc6c2077 Updates safelite-playwright-core dependency
Updates the safelite-playwright-core dependency to the latest version.
This update likely includes bug fixes, performance improvements, or new features.

Removes unused promoCode variable from OrderConfirmationPage.ts
2025-06-23 14:38:32 -04:00
maguire-arman
1dadc5f1cb Merge branch 'develop' into feature/CASH-836 2025-06-23 14:20:40 -04:00
maguire-arman
8da9b21539 Updates with 631 changes
Improves the handling of cash to insurance flows, including adding new test cases and adjusting logic for policy verification and payment methods.
Also, updates UI elements to ensure correct display of deductible information and handles split windshield scenarios.
The `safelite-playwright-core` dependency is updated to version 1.0.22.
2025-06-23 14:17:34 -04:00
AdamCaouetteSafelite
faa2a8b845
Merge pull request #2595 from Safelite/feature/CASH-823
Feature/cash-823
2025-06-23 11:07:46 -04:00
maguire-arman
eb9a5bffe2 Temporarily disables heavy truck tests
Disables heavy truck and split windshield tests in both standard and alert test suites.

These tests are commented out due to ongoing QA processes and will be re-enabled once ready.
2025-06-23 10:02:48 -04:00
maguire-arman
89274929cb Adds test and support for split windshield replacements
Adds a new test case for cash replacements of split windshields.

Normalizes "SPLIT WINDSHIELD" types to "WINDSHIELD" in the parts array to ensure correct part validation during order processing.

Extends the `vehicleDamage` enum to include `DriverSplitWindshield` and `PassengerSplitWindshield`.
2025-06-23 09:59:47 -04:00
AdamCaouetteSafelite
721bb09f07
Merge branch 'develop' into feature/CASH-823 2025-06-20 12:50:41 -04:00
Johnny Shultz
eecb29cf43
Merge pull request #2596 from Safelite/feature/CASH-341v2
CASH-341
2025-06-20 10:13:57 -04:00
Scott Kiener
ebdd2751b6 Format 2025-06-20 09:55:34 -04:00
AdamCaouetteSafelite
d4f7c47889 Merge branch 'develop' into feature/CASH-341v2 2025-06-19 16:47:22 -04:00
AdamCaouetteSafelite
b5eceb9359 CASH-342: fix comment formating in CSS 2025-06-19 16:44:08 -04:00
CarlNation
e8a5f57dca
Merge pull request #2597 from Safelite/rlsmerge/2025.06.19-to-dev
Rlsmerge/2025.06.19 to dev
2025-06-19 13:47:56 -04:00
CarlNation
0abe3eb585 merge 2025-06-19 13:28:05 -04:00
maguire-arman
54a8036a0d Adds split windshield support and alert test
Adds support for split windshield damage selection and validation.
Introduces new vehicle damage types and corresponding UI elements on the vehicle damage page.
Also, adds a new alert message to handle the scenario where both single-piece and split windshield options are selected.
The changes enhance the accuracy of vehicle damage assessment.
2025-06-19 13:01:56 -04:00
maguire-arman
e4e49ac529 Merge remote-tracking branch 'origin/CASH-631' into CASH-631 2025-06-19 12:59:07 -04:00