Commit graph

39 commits

Author SHA1 Message Date
maguire-arman
554841a9b9 Merge branch 'feature/CASH-488-fixed' into feature/CASH-530 2025-04-24 15:55:08 -04:00
maguire-arman
16949a78a9 added CASH-488 changes 2025-04-24 14:54:40 -04:00
kpatel8hs4io
faf892b307 fix for the schedule page changes 2025-04-24 14:15:31 -04:00
maguire-arman
bf6e80d05d Revert "Merge pull request #2413 from Safelite/feature/CASH-488"
This reverts commit e79314e8fe, reversing
changes made to 7356268f2f.
2025-04-24 14:12:14 -04:00
maguire-arman
ac53601a34 Merge 488 into 530
Refactors the date picker component to support pricing by day experiment, including new styling and logic for displaying prices.

Adds a progress bar to the funnel header to visually represent the user's progress through the workflow.

Updates dependencies including axios, and adds axios mock adapter and retry.

Adds new icons and updates styling for various UI components.

Improves logic for handling heavy trucks and closest shops.
2025-04-24 11:51:24 -04:00
maguire-arman
ae4c26499b Uses env var to control content site execution
Updates the workflow to conditionally execute the content site (home page) based on the SKIP_CONTENT_SITE environment variable.
This allows for skipping the content site in specific environments.
Also, removes unused test data properties.
2025-04-24 11:26:21 -04:00
maguire-arman
87b7b8158b changed duplicate check url expect 2025-04-24 11:21:56 -04:00
kpatel8hs4io
932949004e Refactored master script with step decorator feature 2025-04-24 11:17:56 -04:00
maguire-arman
abb78523c9 Fixes service location page selector issue
Updates the selectors for the first appointment button and the repeated clicks modal close button on the service location page.

Also, adjusts the logic to ensure the shop selection is visible and clickable, particularly when dealing with dynamic content loading or potential rendering issues.
Additionally, shop address is saved in appointment details

This resolves issues with element selection and interaction on the service location page, improving the reliability of the tests.
2025-04-23 14:45:20 -04:00
kpatel8hs4io
c74a6a7d10 adding more changes 2025-04-21 17:13:15 -04:00
kpatel8hs4io
4344c19a30 Payment method page validation changes 2025-04-21 13:01:53 -04:00
maguire-arman
c26b214084 added skip_Content_site variable 2025-04-21 11:51:23 -04:00
maguire-arman
27b6e968e2 adding quotes when defining base url because of -e problem 2025-04-11 10:13:03 -04:00
maguire-arman
7d20b0074c Removes PR gate pipeline config
Removes the Playwright tests and related jobs from the Azure Pipelines configuration file. These jobs were unintentionally added to the branch and are no longer needed.
2025-04-10 14:03:06 -04:00
maguire-arman
4f434c5488 Merge branch 'feature/CASH-481' into feature/CASH-488 2025-04-10 13:53:52 -04:00
maguire-arman
2510f3c9de Adds skip content site functionality.
Allows skipping the content site (home page) based on an environment variable.
This provides flexibility in test execution, enabling tests to bypass the home
page when it's not relevant to the specific scenario being tested.

The SKIP_CONTENT_SITE environment variable controls whether to skip the content site.
2025-04-10 13:51:18 -04:00
maguire-arman
d26885d0f0 Improves handling of repeated clicks modal
Updates the selector for the repeated clicks modal close button to be more specific, and adds a short wait after closing the modal before proceeding.  This improves reliability when the modal appears and interferes with subsequent actions.
Removes redundant check for modal visibility in the service location page as it is handled on the service packages page.
2025-04-10 13:37:41 -04:00
maguire-arman
d443672745 Updates default postal code for customer details
Updates the default postal code in the customer details data.
This ensures that the default data reflects a more accurate or valid postal code for testing purposes.
2025-04-10 11:43:49 -04:00
maguire-arman
d918d85ee4 Pulls NODE_ENV variable from env and uses this in the comment 2025-04-10 09:48:01 -04:00
maguire-arman
49ea0fa13e Adding Environment to Jira comment 2025-04-10 09:27:14 -04:00
maguire-arman
4e82930ea3 Removed Cron Job scheduling from automated testing pipeline
Now setting it up through Azure
2025-04-10 09:24:37 -04:00
maguire-arman
219762ec30 Adds Jira integration for test results
Adds a Jira writeback reporter to automatically create bug and test case subtasks in Jira based on playwright test results.
Upgrades axios and adds axios-retry and axios-mock-adapter for more robust API calls.
2025-04-09 14:50:30 -04:00
maguire-arman
0b742ab848 Updates scheduled pipeline branch
Updates the scheduled pipeline to run against the release branch.
This ensures that the automated tests are executed against the stable
release branch.
2025-04-08 16:17:05 -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
maguire-arman
888c235b27 Updates Dockerfile path in pipeline config
Updates the Azure pipeline configuration to reference the relocated Dockerfile.

This ensures the pipeline correctly identifies and builds the Docker image, preventing build failures.
2025-04-08 13:04:26 -04:00
maguire-arman
6a2f23b87a updated location of dockerfile in pipeline 2025-04-08 12:59:35 -04:00
maguire-arman
2e69f741c0 Updates artifacts folder path
Updates the path to the artifacts folder in the Playwright config.

This ensures that test results are stored in the correct location
within the project structure.
2025-04-08 11:29:47 -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
b5102ce229 Adds script to run Playwright tests
Adds a script to the `package.json` file for running Playwright tests.

Updates the `.env.dev` file to set the base URL for the QA environment.
2025-04-08 10:56:03 -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
0853d55233 Adds Playwright installation instruction
Adds the instruction to install Playwright dependencies.

This ensures that the necessary browser drivers are available for running Playwright tests.
2025-04-08 09:49:44 -04:00
maguire-arman
d8c934fd6c Normalizes environment variable files
Updates .env files to use a consistent comment style for base URLs.

This change improves readability and maintainability of the
environment configuration files.
2025-04-08 09:49:31 -04:00
maguire-arman
07fe97165e Loads env vars only when not in CI
Ensures environment variables are loaded from `.env` files only when not running in a CI environment.

This prevents overwriting variables already present in the CI environment.

Adds an example env file for local development.
2025-04-08 09:26:27 -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