Commit graph

9634 commits

Author SHA1 Message Date
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
Michaela Brydon
b20e742531 Adding test:unit script for pipeline run 2025-07-10 11:46:02 -04:00
Michaela Brydon
d61bda3863 Step 1 fixing code coverage for FMG with sonarqube 2025-07-10 10:54:47 -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
AdamCaouetteSafelite
749c5cc466
Merge pull request #2630 from Safelite/feature/CASH-845-stage-3
Feature/cash 845 stage 3
2025-07-10 09:44:39 -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
Bryan Mauger
4b803e7026 CASH-1042 WIP 2025-07-10 09:40:55 -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
AdamCaouetteSafelite
26035ab37d CASH-845 prettier fixes 2025-07-10 09:28:25 -04:00
AdamCaouetteSafelite
03b588bcd9 Merge branch 'release/2025.07.10' into feature/CASH-845-stage-3 2025-07-10 09:27:16 -04:00
Bryan Mauger
fe441d8ba0 CASH-1042 WIP modal updates. 2025-07-10 09:22:30 -04:00
AdamCaouetteSafelite
c2aed7e25a CASH-845 add zipCode to mobile call payload 2025-07-10 06:46:56 -04:00
AdamCaouetteSafelite
66248db361 CASH-845 restore temp testing code 2025-07-10 06:32:52 -04:00
AdamCaouetteSafelite
fb03af0533 CASH-845 update api call method structure for new zipCode param to be passed 2025-07-10 06:32:02 -04:00
AdamCaouetteSafelite
b6178ead44 CASH-845 update getMobileTimeSlots call in store to take optional zipCode param 2025-07-10 06:09:24 -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
AdamCaouetteSafelite
b7ac78aaca
Merge pull request #2629 from Safelite/feature/CASH-845-stage-3
Feature/cash 845 stage 3
2025-07-09 15:50:08 -04:00
AdamCaouetteSafelite
f7351ca5be CASH-845 prettier fixes 2025-07-09 15:37:48 -04:00
AdamCaouetteSafelite
3ba3f8a4fc CASH-845 quick fixes to get JS changes working again 2025-07-09 15:35:24 -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
Bryan Mauger
4327efef6f CASH-1042 WIP steps updates. 2025-07-09 15:28: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
chloeherdsafelite
435f33bf49
Merge pull request #2627 from Safelite/feature/CASH-365-update
Correct page data model for interfacing with save-session
2025-07-09 14:01:26 -04:00
Bryan Mauger
9d511d0b6f CASH-1042 WIP add steps to button. 2025-07-09 13:50:30 -04:00
chloeherdsafelite
0940b9c11a
Merge branch 'release/2025.07.10' into feature/CASH-365-update 2025-07-09 13:49:38 -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
Johnny Shultz
24ea55fd60
Merge pull request #2628 from Safelite/feature/CASH-816v2
CASH-816
2025-07-09 13:06:36 -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
Johnny Shultz
a247ac9ae1
Merge branch 'release/2025.07.10' into feature/CASH-816v2 2025-07-09 13:00:05 -04:00