Commit graph

37 commits

Author SHA1 Message Date
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
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
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
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
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
f3fe504caa
Merge branch 'CASH-631' into CASH-642-latest 2025-06-19 12:58:28 -04:00
JennyNou
037d8ec01f Add no comp locator to logic 2025-06-19 11:12:39 -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
Chase King
626dc854e7 Implemented playwright core 2025-06-17 12:15:04 -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
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
maguire-arman
4e8c24d08b Handle new paypal payment flow 2025-05-29 15:02:26 -04:00
kpatel8hs4io
7be7ebdfb6 minor changes 2025-05-28 10:21:48 -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
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
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
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
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
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
8a0127156f Handles modal popup on content page
Adds functionality to automatically close a modal popup
that appears on the homepage, ensuring a smoother user
experience.
2025-04-08 11:18:14 -04:00
maguire-arman
dacacda7a6 Updates session storage key for order number
changed from submittedOrder to submittedState
2025-04-08 10:47:19 -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