Commit graph

9156 commits

Author SHA1 Message Date
maguire-arman
d82e1780cd turn regression off for testing 2025-07-14 11:17:37 -04:00
maguire-arman
e413b3267c turned regression on for a run 2025-07-14 09:44:27 -04:00
maguire-arman
69eec56056 Configures Playwright blob report output directory
Configures the Playwright blob report output directory to '/app/blob-report' within the test job definitions.

This ensures that the blob reports are consistently stored in a designated location within the container,
facilitating easier access and management of test artifacts.
2025-07-14 09:27:41 -04:00
maguire-arman
59a7dc12ef Specifies playwright config file path
Ensures that the playwright config file path is explicitly set during test execution.

This change resolves potential issues where the config file might not be correctly located, especially in environments with non-standard project structures.
2025-07-11 10:11:29 -04:00
maguire-arman
cf18265057 Removes debug logging in Playwright tests
Removes temporary debugging statements from the Playwright test workflow. These logs were used to diagnose issues with report merging but are no longer needed, reducing noise in the CI output.
2025-07-11 10:03:49 -04:00
maguire-arman
2cd746766c testing pr gate again 2025-07-11 10:03:33 -04:00
maguire-arman
f11a6a0249 turning on regression pipeline for the night 2025-07-10 16:14:41 -04:00
maguire-arman
08deb5b5e2 Updates Playwright merge-reports command
Updates the Playwright merge-reports command to explicitly specify the configuration file.

Removes unnecessary Playwright command.
2025-07-10 15:41:57 -04:00
maguire-arman
7a71b623f8 Reruns Playwright to ensure report generation
Executes Playwright after merging reports to guarantee the generation of final reports.

This ensures that the JUnit and other reports are generated correctly after the merging process, leading to more reliable test reporting.
2025-07-10 15:09:54 -04:00
maguire-arman
99ddab867f Adds debugging logs to Playwright test execution
Adds debugging logs to the Playwright test execution within the Docker container to aid in diagnosing issues with report generation and merging. These logs provide insights into directory contents and the state of the environment.
2025-07-10 14:22:15 -04:00
maguire-arman
36fa8fb3f3 Executes Playwright commands within a bash shell
The previous implementation encountered issues with command execution within the docker container. This change wraps the Playwright commands in a bash shell, ensuring proper execution and resolving potential errors during the report merging and related processes.
2025-07-10 14:03:53 -04:00
maguire-arman
9e121c906c Ensures environment variables are correctly passed
Specifies that environment variables are exported to ensure
they are accessible within the Docker container context. Also
wraps the execution command in `bash -c` to ensure proper
command execution within the container.
2025-07-10 13:55:01 -04:00
maguire-arman
998ccfb287 Fixes shell command syntax error
Corrects a syntax error in the shell command used to move Playwright reports, ensuring the command executes as intended.
2025-07-10 13:49:24 -04:00
maguire-arman
ac92600b28 Fixes shell command execution in Docker
Ensures the shell command is properly executed within the Docker container by wrapping it in quotes. This resolves issues where the command was being misinterpreted or failing to execute as intended.
2025-07-10 13:45:35 -04:00
maguire-arman
0b71f997ca Streamlines Playwright report merging in Docker
Removes unnecessary directory listing commands from the Docker container execution within the Playwright test job.

This change simplifies the execution and reduces the noise in the job logs, focusing on the core report merging process. The execution also uses semicolons instead of newlines to separate commands.
2025-07-10 13:39:19 -04:00
maguire-arman
6626e7dc58 Improves debug output in CI workflow
Enhances debugging capabilities in the CI workflow by adding `ls -al` command to print the contents of the playwright-tests directory.
Also, corrects the path for listing test results to use a relative path instead of an absolute path, ensuring it works correctly regardless of the environment.
2025-07-10 12:07:00 -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
91d0ebd63f Updates test results directory path.
Updates the path to the test results directory in the workflow file to reflect the new location.

This ensures the workflow correctly accesses and reports test results.
2025-07-10 10:46:18 -04:00
maguire-arman
6b410c432c Adds debug logging for test execution
Enhances debugging capabilities during test execution by adding logging to capture directory contents. This helps diagnose potential issues related to file access or environment setup within the test environment.
2025-07-10 10:27:10 -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
43027f6d7b Fixes: Removes extra comma from path
Removes an extraneous comma in the path definition, resolving an issue caused by the incorrect path formatting.
2025-07-10 09:43:00 -04:00
maguire-arman
8e4f303ba8 Merge remote-tracking branch 'origin/feature/CASH-836' into feature/CASH-836 2025-07-10 09:40:34 -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
a3c8f8eab3 Using parameterized variables and testing non regression 2025-07-10 09:28:28 -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
617b076ef2 Setting up regression run for the night 2025-07-09 20:13:04 -04:00
maguire-arman
9faa3a77fb Revert
Ensures the Playwright test command receives the path
to the test files, which is necessary for proper execution
within the Docker environment.
2025-07-09 17:16:03 -04:00
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