Commit graph

168 commits

Author SHA1 Message Date
maguire-arman
b4fd2ed970 test commit to trigger pipeline 2
Comments out the progress bar validation logic in the base page.

This is a temporary measure until the progress bar implementation is completed.
2025-08-01 14:14:55 -04:00
maguire-arman
08e51f5dde Test commit to trigger pipeline 2025-08-01 14:04:00 -04:00
maguire-arman
d217f9ee44 Comments out progress bar validation.
Comments out the progress bar validation code.

This is done because the progress bar implementation is not yet complete. The validation will be re-enabled when the progress bar work is finished.
2025-08-01 13:52:08 -04:00
JennyNou
1011e0ee44 Add to comment 2025-08-01 13:44:13 -04:00
JennyNou
92a6bc141a Comment out progress bar validation function 2025-08-01 13:34:35 -04:00
maguire-arman
455bc44195 Merge branch 'develop' into feature/CASH-848 2025-08-01 13:19:41 -04:00
maguire-arman
4eb9bf657d Updates Playwright Jira reporter and pool
Updates the Playwright Jira reporter version to the latest.

Changes the Azure DevOps pipeline pool to AmazonLinuxPool.
2025-08-01 13:19:07 -04:00
JennyNou
e6d602ec3d Tag automation tests to run in pipeline 2025-08-01 11:45:57 -04:00
maguire-arman
ddce8dfe55 Test commit 1 2025-07-30 11:48:55 -04:00
maguire-arman
a414436889 Commits for pipeline to run
Cleans up the Afterpay payment execution flow by removing unnecessary and commented-out code related to card details population.
2025-07-30 11:30:35 -04:00
kpatel8hs4io
59e2f275dc few minor changes for playwright tests 2025-07-30 11:14:38 -04:00
maguire-arman
d42371683c Adds CASH-848 tag to relevant tests
Adds the '@CASH-848' tag to several Cash and Insurance related E2E tests.

This tag likely relates to a specific issue or requirement tracked under CASH-848.
2025-07-29 12:57:36 -04:00
kpatel8hs4io
b6b8d739f7 Fixed playwright tests 2025-07-23 22:17:59 -04:00
kpatel8hs4io
7d04b9eda2 fix for shopAddress Issue if shop address is not provided in the test 2025-07-21 15:40:12 -04:00
kpatel8hs4io
3c8212c8d7 Merge branch 'develop' into CASH-1193 2025-07-21 15:39:00 -04:00
kpatel8hs4io
eb2c1ab511 Adding New Schedule Parity Flow Changes 2025-07-18 10:11:22 -04:00
maguire-arman
4d38768554 Updates npm registry configuration
Updates the npm registry configuration.

Removes authentication token from .npmrc.
2025-07-16 12:43:24 -04:00
maguire-arman
1689088fdf Adds CASH-1187 tag and comment for test.
Adds a tag to the heavy truck test case and a comment to App.vue.
The tag is for tracking purposes.
The comment is for testing.

Relates to CASH-1187
2025-07-16 09:30:17 -04:00
maguire-arman
9687529d5e Tag test cases to test pr gate pipeline
Updates test case tags to reflect the correct issue IDs
and removes outdated references. This ensures accurate
test reporting and traceability.
2025-07-15 15:08:49 -04:00
maguire-arman
e1692d94ca Revert "final Pipeline test"
This reverts commit 77b8a66380.
2025-07-15 13:47:21 -04:00
maguire-arman
77b8a66380 final Pipeline test 2025-07-15 13:28:23 -04:00
maguire-arman
795995c16b Revert "Rerun"
This reverts commit 9f7596edb5.
2025-07-15 12:57:20 -04:00
maguire-arman
9f7596edb5 Rerun
Rerun
2025-07-15 12:39:28 -04:00
maguire-arman
d7d7112c5b Streamlines credit card payment flow
Removes an unnecessary navigation step after populating credit card details, improving the user experience.

Adds CI environment variable to docker create commands.
2025-07-15 11:53:03 -04:00
maguire-arman
7e9d471d26 Cleans up environment files
Removes the unnecessary .env.example file and consolidates configurations.

Simplifies environment management and reduces potential confusion.
2025-07-15 09:24:01 -04:00
maguire-arman
458e552d6b Removes URL declaration from page classes
Removes the explicit URL declaration from the page classes.

The URL validation and navigation are now handled directly within the tests, providing greater flexibility and control over test execution and removing the need to manage URLs within each page object.
2025-07-14 16:13:56 -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
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
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
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
6e068785a8 added tags to tests 2025-07-09 14:24:38 -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
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
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
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
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
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
f3fe504caa
Merge branch 'CASH-631' into CASH-642-latest 2025-06-19 12:58:28 -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
gc-carlin
26e3f9c61f cashToInsurance final logic for after ins flow 2025-06-18 16:05:54 -04:00
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
maguire-arman
8d51f51201 Updates safelite-playwright-core to version 1.0.21
Updates the safelite-playwright-core dependency to the latest version.
This likely includes bug fixes, performance improvements, or new features.
2025-06-18 12:43:21 -04:00
maguire-arman
e3d2373409 Sets payment method to self-pay for cash clients
Configures test data to explicitly set the payment method to "SelfPay" for test cases involving cash clients.
This change ensures that the payment process is correctly initiated and handled when customers choose to pay directly.
2025-06-18 10:08:02 -04:00
Chase King
626dc854e7 Implemented playwright core 2025-06-17 12:15:04 -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
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
f30049315c Adds custom node packages
Adds the playwright-jira-reporter and safelite-playwright-core packages to the project.

This allows the project to integrate with Jira for test reporting.
Also adds a .npmrc file to configure the npm registry to use Azure Artifacts.
2025-06-05 16:40:49 -04:00
maguire-arman
0756390830 Removes Playwright testing setup from core project
Removes Playwright testing setup, configurations, and related dependencies from the core project.

Introduces a dedicated 'playwright-tests' directory to contain the testing framework, isolating test-related dependencies and configurations from the core application.

This change aims to keep the core project lean and focused on application logic while promoting a more modular and maintainable testing approach.
2025-06-05 16:22:34 -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