Commit graph

30 commits

Author SHA1 Message Date
maguire-arman
0bebce1d92 Uses function call for shard number assignment.
Replaces direct matrix value access with a function call to obtain the shard number.
This approach enhances flexibility and maintainability by abstracting the source of the shard number.
2025-07-15 10:08:40 -04:00
maguire-arman
7240720572 Uses matrix for shard number in Playwright tests
Uses the matrix context for the shard number in the Playwright test workflow.

This change ensures the correct shard number is used when running Playwright tests in parallel.
2025-07-15 10:00:29 -04:00
maguire-arman
7b396a62d1 Updates variable for accessing branch name
Updates the variable used to access the source branch name in pull requests.

The previous variable was deprecated or no longer functioning as expected.
This change ensures the workflow can reliably retrieve the branch name for
extracting JIRA card numbers.
2025-07-15 09:27:42 -04:00
maguire-arman
e2556b07bb Wrapped up testing and now ready for merge
Configures the pipelines to utilize regression testing, increases the total shards for automated testing, and corrects the logic for retrieving the branch name to extract the JIRA card number.
2025-07-14 14:32:10 -04:00
maguire-arman
d053a49f41 Passes JIRA card number to merge-reports
Ensures the JIRA card number is available as an environment variable during the playwright merge-reports process. This allows the reports to be tagged with the correct JIRA ticket.
2025-07-14 13:40:22 -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
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
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
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
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
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
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