Commit graph

9129 commits

Author SHA1 Message Date
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
maguire-arman
58ae246a41
Merge pull request #2594 from JennyNou/CASH-642-latest
Cash 642 latest into Cash 631
2025-06-19 12:58:39 -04:00
maguire-arman
f3fe504caa
Merge branch 'CASH-631' into CASH-642-latest 2025-06-19 12:58:28 -04:00
Johnny shultz
9641723d18 CASH-341
CASH-341 changed var back to  let
2025-06-19 12:45:33 -04:00
Johnny shultz
96ac6183c0 CASH-341
CASH-341 new branch with PR to try to get around weird pretttier pipeline blocker
2025-06-19 12:43:06 -04:00
AdamCaouetteSafelite
eb8e896762 CASH-823: remove leftover obsolete code 2025-06-19 12:32:38 -04:00
AdamCaouetteSafelite
7a2bd42034 Merge branch 'develop' into feature/CASH-823 2025-06-19 12:22:04 -04:00
Adam Caouette
c9565e9406 CASH-823: giant commit of this tickets changes and more 2025-06-19 11:31:02 -04:00
JennyNou
92b3e34d4b Add test to cover no comp insurance scenario 2025-06-19 11:13:39 -04:00
JennyNou
c3c8b48129 Add no comp test to master test 2025-06-19 11:12:51 -04:00
JennyNou
037d8ec01f Add no comp locator to logic 2025-06-19 11:12:39 -04:00
maguire-arman
c781ccec80 New Heavy truck zip to keep error 2025-06-19 10:28:28 -04:00
maguire-arman
d7566e5d60 Renames isCashToInsurance to isCashInsuranceFlow
Updates the `isCashToInsurance` property to `isCashInsuranceFlow`
for improved clarity and consistency in naming conventions.

This change affects test data interfaces and related logic
to accurately reflect the cash-to-insurance flow.
2025-06-19 09:20:09 -04:00
maguire-arman
bb6f2b3cdc
Merge pull request #2592 from Safelite/CASH-768
Cash-768
2025-06-19 09:15:33 -04:00