Commit graph

60 commits

Author SHA1 Message Date
gc-carlin
e94246a871 Merge remote-tracking branch 'origin/CASH-631' into CASH-768 2025-06-18 13:56:11 -04:00
gc-carlin
cf4b9539ef adding test to master 2025-06-18 13:48:02 -04:00
JennyNou
a7936496f6 Merge branch 'CASH-631' into CASH-642-latest 2025-06-16 13:35:17 -04:00
maguire-arman
380994e076 Removes unused isRecalNotification flag
Removes the `isRecalNotification` flag from the default test data, as it's no longer used in the application's logic or tests.
This simplifies the test data and avoids potential confusion.
2025-06-10 14:34:00 -04:00
maguire-arman
2da134bbb1 removes recalinfo boolean and uses isRecalVehicle for handling page in ins
Updates the `isRecalNotification` flag to `isRecalVehicle` for better clarity and consistency across the codebase.

This change ensures that the flag's name accurately reflects its purpose: to indicate whether recalibration information for a vehicle is required.
2025-06-10 12:48:44 -04:00
JennyNou
c95772052a Added unverified insurance test to master file 2025-06-09 15:29:06 -04:00
JennyNou
bc591b07bd Added logic for validating unverified flow 2025-06-09 15:28:00 -04:00
JennyNou
514fdca340 Updated locator and logic for unverified policy flow 2025-06-09 15:26:20 -04:00
JennyNou
ca41375b3c Added unverified policy flag 2025-06-09 15:25:23 -04:00
JennyNou
8961740560 Changed policy deductible type to cover unverified coverage text 2025-06-09 15:24:58 -04:00
JennyNou
3e7d251244 Added new test to cover unverified insurance flow 2025-06-09 15:23:54 -04:00
JennyNou
c2abf5d7aa Updated heavy truck naming 2025-06-04 11:30:00 -04:00
JennyNou
f5ecb1148a Added condition for validation 2025-06-04 11:29:34 -04:00
JennyNou
44934a7932 Merge branch 'CASH-631' into CASH-642 2025-06-04 10:40:20 -04:00
kpatel8hs4io
b10ec1f608 adding a change to handle addresslookup page 2025-06-03 11:00:51 -04:00
gc-carlin
ef1efe0fe0 Cash switch to insurance - needs fixing 2025-05-29 16:59:17 -04:00
maguire-arman
4e8c24d08b Handle new paypal payment flow 2025-05-29 15:02:26 -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
kpatel8hs4io
7be7ebdfb6 minor changes 2025-05-28 10:21:48 -04:00
maguire-arman
edf961b490 renamed reporter from ISS to FMG 2025-05-27 14:02:43 -04:00
kpatel8hs4io
a2bc97f693 progress bar changes 2025-05-23 11:58:33 -04:00
kpatel8hs4io
2f297d2c10 fix for the afterpay tests related to progress bar validations and updated mobile service location selection 2025-05-21 19:17:37 -04:00
Jenny Nou
152043dfd9 Renamed big truck insurance test file 2025-05-20 15:57:56 -04:00
Jenny Nou
9c13fec5a2 Added policy zip to test data 2025-05-20 15:56:58 -04:00
maguire-arman
2b16a6b2fd Corrects deductible validation on order confirmation
Ensures the order confirmation page accurately displays the policy deductible amount for insurance users.

Previously, it incorrectly validated the service package amount against a hardcoded value instead of the policy deductible.
2025-05-20 11:28:09 -04:00
maguire-arman
5925f07653 fixed address for big truck location 2025-05-20 11:27:08 -04:00
maguire-arman
c49228220d Adds support for heavy truck insurance flow
Adds a new test case for a big truck insurance flow.
This includes updating the test data to include a flag for heavy trucks and the zip code.

Renames `isHeavyTruckVehicle` to `isHeavyTruckVehicleAlert` for clarity.
2025-05-20 10:42:49 -04:00
maguire-arman
5c92fe8322 Adapts PayPal login flow for different scenarios
Adjusts the PayPal purchase completion logic to handle cases where the "Log in with password" option is immediately visible or requires an initial login step with email.

This ensures a more robust and reliable payment process across different PayPal configurations.
2025-05-20 10:06:03 -04:00
maguire-arman
aa43e2941a Updates PayPal login flow
Adds username input and "next" button handling to the PayPal login flow.
This update is necessary to support the new PayPal login screen, which requires entering the username before the password.
2025-05-19 16:26:41 -04:00
maguire-arman
5a5be03cc1 Adds local FMG base URL option
Adds a commented-out base URL for a local FMG server instance to the development environment configuration.

This allows developers to easily test against a local version of FMG by uncommenting the appropriate line.
2025-05-19 15:23:55 -04:00
maguire-arman
c6124a658e Change rain defense to rain repel
Corrects the premium service package description to align with the updated service offering.

The text "Rain Defense™" is replaced with "Rain repel treatment"
for accuracy and consistency.
2025-05-16 10:51:42 -04:00
maguire-arman
b3c3411a37 Fixes service location selection
Corrects an issue where the service location wasn't being selected properly in certain scenarios.

Specifically, it ensures the 'Enter Service Address' button is clicked only when the address text box is not visible. It also removes the unnecessary 'saveAddressButton' click.
2025-05-15 10:47:17 -04:00
maguire-arman
a3234c9213 made final amount due text selector more specific 2025-05-14 16:27:36 -04:00
kpatel8hs4io
d151256ca9 adding changes for earlybird coverage and progress bar validation 2025-05-13 15:51:45 -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
e90bea161d Updates test report output path
Updates the default folder path for generated test reports.
This ensures that test results are consistently saved in the
"artifacts/test-results" directory.
2025-05-09 15:22:45 -04:00
maguire-arman
a5cae0fe42 Moves CI and Docker configuration files.
Relocates CI and Docker configuration files to the root directory.

This change simplifies the project structure by placing these essential configuration files at the top level, making them more accessible and easier to manage.
2025-05-09 15:06:32 -04:00
maguire-arman
bf44f1a59c Moves Dockerfile to playwright-tests directory
Moves the Playwright Dockerfile to the playwright-tests directory
to improve project organization and maintainability.
2025-05-09 15:04:34 -04:00
maguire-arman
f29937700c Adds Automated Regression Pipeline&Jira writeback reporter to playwright
Implements a custom Playwright reporter to integrate with Jira.

This reporter automatically creates/updates test case and bug subtasks in Jira based on Playwright test results. It also uploads the ortoni HTML report to the parent Jira card.

Key features:
- Creates a regression card if none are found
- Transitions test subtasks based on test results.
- Creates bug subtasks for failed tests.
- Uploads the Ortoni HTML report as an attachment to the Jira card.
- Configurable through environment variables (Jira server, username, API key, project key, etc.).

Also adds axios-retry to handle rate limiting errors from Jira API
2025-05-09 14:51:29 -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
4047af0e96 Removes the data history SQLite file.
Deletes the ortoni-data-history.sqlite file. This file is no longer needed, potentially due to changes in how test results are handled or stored.
2025-05-08 16:10:10 -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
6f50085aa5 Updates test results directory path
Updates the path for storing test results in the Azure Pipelines configuration.
This ensures that test reports and JUnit results are correctly located
and copied during the automated testing process.
2025-04-08 15:06:52 -04:00
maguire-arman
4aa48a1995 Closes the modal popup
Adds a wait time to ensure the modal popup opens before attempting to close it.
2025-04-08 14:41:45 -04:00
maguire-arman
817f81734d Moves Jira writeback script
Moves the Jira writeback script to a more appropriate location.

Updates the Azure Pipelines configuration to reflect the new path.
2025-04-08 13:46:32 -04:00
maguire-arman
d77f5f314f changed path of jira writeback reporter in pipeline 2025-04-08 13:26:03 -04:00
maguire-arman
9f2607005e Adds installation option with dependencies
Suggests an alternative installation command that includes chromium and its dependencies.
This ensures users have a complete and functional environment for running Playwright tests.
2025-04-08 13:22:31 -04:00