Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
bb762a6
smoke testing scenarios
Priyanka-Microsoft Nov 18, 2025
5c83ffc
included more test cases
Priyanka-Microsoft Nov 24, 2025
ea0a96d
included more test cases
Priyanka-Microsoft Dec 2, 2025
b5c3d0f
included one more test case
Priyanka-Microsoft Dec 3, 2025
779875a
Merge branch 'dev' into smoke-testing-test-cases
Priyanka-Microsoft Dec 3, 2025
841ef5e
increased the wait time
Priyanka-Microsoft Dec 4, 2025
c4d6551
removed not required changes
Priyanka-Microsoft Dec 5, 2025
6c15444
update test cases
Priyanka-Microsoft Dec 5, 2025
ab44771
Merge branch 'dev' into smoke-testing-test-cases
Priyanka-Microsoft Dec 15, 2025
810ef54
Merge pull request #643 from microsoft/dev
Roopan-Microsoft Dec 15, 2025
c59ab9e
update test cases
Priyanka-Microsoft Dec 15, 2025
31f698d
deleted GP file
Priyanka-Microsoft Dec 16, 2025
5c3e29b
Merge branch 'main' into smokeTestingv2
Vamshi-Microsoft Dec 16, 2025
be90087
Added Smoke Testing cases into Pipeline
Vamshi-Microsoft Dec 16, 2025
7354030
removed SecurityControl
Vamshi-Microsoft Dec 18, 2025
400dcfb
Merge pull request #644 from microsoft/psl-remove-SecurityControl
Prajwal-Microsoft Dec 18, 2025
68eee2f
updated test cases
Priyanka-Microsoft Dec 18, 2025
e698656
Use relative paths for screenshots in test reports
Vamshi-Microsoft Dec 23, 2025
b07f1b0
Merge branch 'main' into pls-smoketesting-integrationv2
Vamshi-Microsoft Dec 23, 2025
f34b32b
Update resource group name generation and clean up step summary output
Vamshi-Microsoft Dec 23, 2025
9e4a49c
Refactor cleanup-deployment conditions and update notification email …
Vamshi-Microsoft Dec 23, 2025
e098094
Potential fix for pull request finding 'Unused local variable'
Priyanka-Microsoft Dec 23, 2025
27f94fc
Potential fix for pull request finding 'Unused local variable'
Priyanka-Microsoft Dec 23, 2025
dcdef64
resolve copilot comment
Priyanka-Microsoft Dec 23, 2025
162e38a
Merge pull request #646 from microsoft/dev
Prajwal-Microsoft Dec 29, 2025
d475703
Refactor screenshot handling to capture only on test failures and upd…
Dec 30, 2025
2e9211f
Merge branch 'main' into psl-smoketesting-integration
Vamshi-Microsoft Jan 1, 2026
83e26bf
Merge pull request #645 from microsoft/psl-smoketesting-integration
Prajwal-Microsoft Jan 1, 2026
232c9b6
Merge pull request #652 from microsoft/dev
Roopan-Microsoft Jan 5, 2026
4b4e5c8
update VS Code Web URL to use stable version
Ragini-Microsoft Jan 5, 2026
c787e63
fix: update VS Code Web URL to use stable version
Avijit-Microsoft Jan 5, 2026
d9f16b1
Update Deployment Guide with Azure authentication step
Thanusree-Microsoft Jan 8, 2026
6db274a
Add VS Code Web option to Deployment Guide
Thanusree-Microsoft Jan 8, 2026
7d13620
Revise deployment guide for clarity and accuracy
Thanusree-Microsoft Jan 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/deploy-orchestrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
secrets: inherit

deploy:
if: always() && (inputs.trigger_type != 'workflow_dispatch' || inputs.existing_webapp_url == '' || inputs.existing_webapp_url == null)
if: "!cancelled() && (inputs.trigger_type != 'workflow_dispatch' || inputs.existing_webapp_url == '' || inputs.existing_webapp_url == null)"
needs: docker-build
uses: ./.github/workflows/job-deploy.yml
with:
Expand All @@ -94,7 +94,7 @@ jobs:
secrets: inherit

e2e-test:
if: always() && ((needs.deploy.result == 'success' && needs.deploy.outputs.WEB_APPURL != '') || (inputs.existing_webapp_url != '' && inputs.existing_webapp_url != null)) && (inputs.trigger_type != 'workflow_dispatch' || (inputs.run_e2e_tests != 'None' && inputs.run_e2e_tests != '' && inputs.run_e2e_tests != null))
if: "!cancelled() && ((needs.deploy.result == 'success' && needs.deploy.outputs.WEB_APPURL != '') || (inputs.existing_webapp_url != '' && inputs.existing_webapp_url != null)) && (inputs.trigger_type != 'workflow_dispatch' || (inputs.run_e2e_tests != 'None' && inputs.run_e2e_tests != '' && inputs.run_e2e_tests != null))"
needs: [docker-build, deploy]
uses: ./.github/workflows/test-automation-v2.yml
with:
Expand All @@ -103,7 +103,7 @@ jobs:
secrets: inherit

send-notification:
if: always()
if: "!cancelled()"
needs: [docker-build, deploy, e2e-test]
uses: ./.github/workflows/job-send-notification.yml
with:
Expand All @@ -122,7 +122,7 @@ jobs:
secrets: inherit

cleanup-deployment:
if: always() && needs.deploy.result == 'success' && needs.deploy.outputs.RESOURCE_GROUP_NAME != '' && inputs.existing_webapp_url == '' && (inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources)
if: "!cancelled() && needs.deploy.outputs.RESOURCE_GROUP_NAME != '' && inputs.existing_webapp_url == '' && (inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources)"
needs: [docker-build, deploy, e2e-test]
uses: ./.github/workflows/job-cleanup-deployment.yml
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ jobs:
azureAiServiceLocation=${{ env.AZURE_AI_LOCATION }} \
imageTag="${IMAGE_TAG}"\
createdBy="Pipeline" \
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
tags="{'Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"

- name: Get Deployment Output and extract Values
id: get_output
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/job-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ jobs:
echo "RESOURCE_GROUP_NAME=${{ inputs.resource_group_name }}" >> $GITHUB_ENV
else
echo "Generating a unique resource group name..."
ACCL_NAME="docgenv2" # Account name as specified
ACCL_NAME="docgen" # Account name as specified
SHORT_UUID=$(uuidgen | cut -d'-' -f1)
UNIQUE_RG_NAME="arg-${ACCL_NAME}-${SHORT_UUID}"
echo "RESOURCE_GROUP_NAME=${UNIQUE_RG_NAME}" >> $GITHUB_ENV
Expand Down Expand Up @@ -298,9 +298,7 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Configuration | Value |" >> $GITHUB_STEP_SUMMARY
echo "|---------------|-------|" >> $GITHUB_STEP_SUMMARY
echo "| **Trigger Type** | \`${{ github.event_name }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| **Branch** | \`${{ env.BRANCH_NAME }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| **Runner OS** | \`${{ inputs.runner_os }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| **WAF Enabled** | ${{ env.WAF_ENABLED == 'true' && '✅ Yes' || '❌ No' }} |" >> $GITHUB_STEP_SUMMARY
echo "| **EXP Enabled** | ${{ env.EXP == 'true' && '✅ Yes' || '❌ No' }} |" >> $GITHUB_STEP_SUMMARY
echo "| **Run E2E Tests** | \`${{ env.RUN_E2E_TESTS }}\` |" >> $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -328,7 +326,7 @@ jobs:
deploy-linux:
name: Deploy on Linux
needs: azure-setup
if: inputs.runner_os == 'ubuntu-latest' && always() && needs.azure-setup.result == 'success'
if: inputs.runner_os == 'ubuntu-latest' && !cancelled() && needs.azure-setup.result == 'success'
uses: ./.github/workflows/job-deploy-linux.yml
with:
ENV_NAME: ${{ needs.azure-setup.outputs.ENV_NAME }}
Expand All @@ -346,7 +344,7 @@ jobs:
deploy-windows:
name: Deploy on Windows
needs: azure-setup
if: inputs.runner_os == 'windows-latest' && always() && needs.azure-setup.result == 'success'
if: inputs.runner_os == 'windows-latest' && !cancelled() && needs.azure-setup.result == 'success'
uses: ./.github/workflows/job-deploy-windows.yml
with:
ENV_NAME: ${{ needs.azure-setup.outputs.ENV_NAME }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/job-send-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ jobs:

EMAIL_BODY=$(cat <<EOF
{
"body": "<p>Dear Team,</p><p>The ${{ env.accelerator_name }} pipeline executed against the <strong>existing WebApp URL</strong> and testing process has completed successfully.</p><p><strong>Test Results:</strong><br>• Status: ✅ Passed<br>• Test Suite: ${TEST_SUITE_NAME}<br>${TEST_REPORT_URL:+• Test Report: <a href='${TEST_REPORT_URL}'>View Report</a>}<br>• Target URL: <a href='${EXISTING_URL}'>${EXISTING_URL}</a></p><p><strong>Deployment:</strong> Skipped</p><p><strong>Run URL:</strong> <a href='${RUN_URL}'>${RUN_URL}</a></p><p>Best regards,<br>Your Automation Team</p>",
"subject": "${{ env.accelerator_name }} Pipeline - Test Automation Passed (Existing URL)"
"body": "<p>Dear Team,</p><p>The ${{ env.accelerator_name }} pipeline executed against the <strong>specified Target URL</strong> and testing process has completed successfully.</p><p><strong>Test Results:</strong><br>• Status: ✅ Passed<br>• Test Suite: ${TEST_SUITE_NAME}<br>${TEST_REPORT_URL:+• Test Report: <a href='${TEST_REPORT_URL}'>View Report</a>}<br>• Target URL: <a href='${EXISTING_URL}'>${EXISTING_URL}</a></p><p><strong>Deployment:</strong> Skipped</p><p><strong>Run URL:</strong> <a href='${RUN_URL}'>${RUN_URL}</a></p><p>Best regards,<br>Your Automation Team</p>",
"subject": "${{ env.accelerator_name }} Pipeline - Test Automation Passed"
}
EOF
)
Expand All @@ -213,8 +213,8 @@ jobs:

EMAIL_BODY=$(cat <<EOF
{
"body": "<p>Dear Team,</p><p>The ${{ env.accelerator_name }} pipeline executed against the <strong>existing WebApp URL</strong> and the test automation has encountered issues and failed to complete successfully.</p><p><strong>Failure Details:</strong><br>• Target URL: <a href='${EXISTING_URL}'>${EXISTING_URL}</a><br>${TEST_REPORT_URL:+• Test Report: <a href='${TEST_REPORT_URL}'>View Report</a>}<br>• Test Suite: ${TEST_SUITE_NAME}<br>• Deployment: Skipped</p><p><strong>Run URL:</strong> <a href='${RUN_URL}'>${RUN_URL}</a></p><p>Best regards,<br>Your Automation Team</p>",
"subject": "${{ env.accelerator_name }} Pipeline - Test Automation Failed (Existing URL)"
"body": "<p>Dear Team,</p><p>The ${{ env.accelerator_name }} pipeline executed against the <strong>specified Target URL</strong> and the test automation has encountered issues and failed to complete successfully.</p><p><strong>Failure Details:</strong><br>• Target URL: <a href='${EXISTING_URL}'>${EXISTING_URL}</a><br>${TEST_REPORT_URL:+• Test Report: <a href='${TEST_REPORT_URL}'>View Report</a>}<br>• Test Suite: ${TEST_SUITE_NAME}<br>• Deployment: Skipped</p><p><strong>Run URL:</strong> <a href='${RUN_URL}'>${RUN_URL}</a></p><p>Best regards,<br>Your Automation Team</p>",
"subject": "${{ env.accelerator_name }} Pipeline - Test Automation Failed"
}
EOF
)
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/test-automation-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ jobs:
id: test1
run: |
if [ "${{ env.test_suite }}" == "GoldenPath-Testing" ]; then
xvfb-run pytest --headed --html=report/report.html --self-contained-html
xvfb-run pytest -m goldenpath --html=report/report.html --self-contained-html
else
xvfb-run pytest --html=report/report.html --self-contained-html
fi
working-directory: tests/e2e-test
continue-on-error: true
Expand All @@ -106,7 +108,9 @@ jobs:
if: ${{ steps.test1.outcome == 'failure' }}
run: |
if [ "${{ env.test_suite }}" == "GoldenPath-Testing" ]; then
xvfb-run pytest --headed --html=report/report.html --self-contained-html
xvfb-run pytest -m goldenpath --html=report/report.html --self-contained-html
else
xvfb-run pytest --html=report/report.html --self-contained-html
fi
working-directory: tests/e2e-test
continue-on-error: true
Expand All @@ -121,7 +125,9 @@ jobs:
if: ${{ steps.test2.outcome == 'failure' }}
run: |
if [ "${{ env.test_suite }}" == "GoldenPath-Testing" ]; then
xvfb-run pytest --headed --html=report/report.html --self-contained-html
xvfb-run pytest -m goldenpath --html=report/report.html --self-contained-html
else
xvfb-run pytest --html=report/report.html --self-contained-html
fi
working-directory: tests/e2e-test

Expand All @@ -131,7 +137,9 @@ jobs:
if: ${{ !cancelled() }}
with:
name: test-report
path: tests/e2e-test/report/*
path: |
tests/e2e-test/report/*
tests/e2e-test/screenshots/*

- name: Generate E2E Test Summary
if: always()
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Follow the quick deploy steps on the deployment guide to deploy this solution to
**For Local Development**
- [Local Development Setup Guide](docs/LocalDevelopmentSetup.md) - Comprehensive setup instructions for Windows, Linux, and macOS

| [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/document-generation-solution-accelerator) | [![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/document-generation-solution-accelerator) | [![Open in Visual Studio Code Web](https://img.shields.io/static/v1?style=for-the-badge&label=Visual%20Studio%20Code%20(Web)&message=Open&color=blue&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/azure/?vscode-azure-exp=foundry&agentPayload=eyJiYXNlVXJsIjogImh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9taWNyb3NvZnQvZG9jdW1lbnQtZ2VuZXJhdGlvbi1zb2x1dGlvbi1hY2NlbGVyYXRvci9yZWZzL2hlYWRzL21haW4vaW5mcmEvdnNjb2RlX3dlYiIsICJpbmRleFVybCI6ICIvaW5kZXguanNvbiIsICJ2YXJpYWJsZXMiOiB7ImFnZW50SWQiOiAiIiwgImNvbm5lY3Rpb25TdHJpbmciOiAiIiwgInRocmVhZElkIjogIiIsICJ1c2VyTWVzc2FnZSI6ICIiLCAicGxheWdyb3VuZE5hbWUiOiAiIiwgImxvY2F0aW9uIjogIiIsICJzdWJzY3JpcHRpb25JZCI6ICIiLCAicmVzb3VyY2VJZCI6ICIiLCAicHJvamVjdFJlc291cmNlSWQiOiAiIiwgImVuZHBvaW50IjogIiJ9LCAiY29kZVJvdXRlIjogWyJhaS1wcm9qZWN0cy1zZGsiLCAicHl0aG9uIiwgImRlZmF1bHQtYXp1cmUtYXV0aCIsICJlbmRwb2ludCJdfQ==) |
| [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/document-generation-solution-accelerator) | [![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/document-generation-solution-accelerator) | [![Open in Visual Studio Code Web](https://img.shields.io/static/v1?style=for-the-badge&label=Visual%20Studio%20Code%20(Web)&message=Open&color=blue&logo=visualstudiocode&logoColor=white)](https://vscode.dev/azure/?vscode-azure-exp=foundry&agentPayload=eyJiYXNlVXJsIjogImh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9taWNyb3NvZnQvZG9jdW1lbnQtZ2VuZXJhdGlvbi1zb2x1dGlvbi1hY2NlbGVyYXRvci9yZWZzL2hlYWRzL21haW4vaW5mcmEvdnNjb2RlX3dlYiIsICJpbmRleFVybCI6ICIvaW5kZXguanNvbiIsICJ2YXJpYWJsZXMiOiB7ImFnZW50SWQiOiAiIiwgImNvbm5lY3Rpb25TdHJpbmciOiAiIiwgInRocmVhZElkIjogIiIsICJ1c2VyTWVzc2FnZSI6ICIiLCAicGxheWdyb3VuZE5hbWUiOiAiIiwgImxvY2F0aW9uIjogIiIsICJzdWJzY3JpcHRpb25JZCI6ICIiLCAicmVzb3VyY2VJZCI6ICIiLCAicHJvamVjdFJlc291cmNlSWQiOiAiIiwgImVuZHBvaW50IjogIiJ9LCAiY29kZVJvdXRlIjogWyJhaS1wcm9qZWN0cy1zZGsiLCAicHl0aG9uIiwgImRlZmF1bHQtYXp1cmUtYXV0aCIsICJlbmRwb2ludCJdfQ==) |
|---|---|---|

<br/>
Expand Down
18 changes: 14 additions & 4 deletions docs/DeploymentGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ Select one of the following options to deploy the Document Generation Solution A
<details>
<summary><b>Option C: Visual Studio Code Web</b></summary>

[![Open in Visual Studio Code Web](https://img.shields.io/static/v1?style=for-the-badge&label=Visual%20Studio%20Code%20(Web)&message=Open&color=blue&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/azure/?vscode-azure-exp=foundry&agentPayload=eyJiYXNlVXJsIjogImh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9taWNyb3NvZnQvZG9jdW1lbnQtZ2VuZXJhdGlvbi1zb2x1dGlvbi1hY2NlbGVyYXRvci9tYWluL2luZnJhL3ZzY29kZV93ZWIiLCAiaW5kZXhVcmwiOiAiL2luZGV4Lmpzb24iLCAidmFyaWFibGVzIjogeyJhZ2VudElkIjogIiIsICJjb25uZWN0aW9uU3RyaW5nIjogIiIsICJ0aHJlYWRJZCI6ICIiLCAidXNlck1lc3NhZ2UiOiAiIiwgInBsYXlncm91bmROYW1lIjogIiIsICJsb2NhdGlvbiI6ICIiLCAic3Vic2NyaXB0aW9uSWQiOiAiIiwgInJlc291cmNlSWQiOiAiIiwgInByb2plY3RSZXNvdXJjZUlkIjogIiIsICJlbmRwb2ludCI6ICIifSwgImNvZGVSb3V0ZSI6IFsiYWktcHJvamVjdHMtc2RrIiwgInB5dGhvbiIsICJkZWZhdWx0LWF6dXJlLWF1dGgiLCAiZW5kcG9pbnQiXX0=)
### VS Code Web

[![Open in Visual Studio Code Web](https://img.shields.io/static/v1?style=for-the-badge&label=Visual%20Studio%20Code%20(Web)&message=Open&color=blue&logo=visualstudiocode&logoColor=white)](https://vscode.dev/azure/?vscode-azure-exp=foundry&agentPayload=eyJiYXNlVXJsIjogImh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9taWNyb3NvZnQvZG9jdW1lbnQtZ2VuZXJhdGlvbi1zb2x1dGlvbi1hY2NlbGVyYXRvci9yZWZzL2hlYWRzL21haW4vaW5mcmEvdnNjb2RlX3dlYiIsICJpbmRleFVybCI6ICIvaW5kZXguanNvbiIsICJ2YXJpYWJsZXMiOiB7ImFnZW50SWQiOiAiIiwgImNvbm5lY3Rpb25TdHJpbmciOiAiIiwgInRocmVhZElkIjogIiIsICJ1c2VyTWVzc2FnZSI6ICIiLCAicGxheWdyb3VuZE5hbWUiOiAiIiwgImxvY2F0aW9uIjogIiIsICJzdWJzY3JpcHRpb25JZCI6ICIiLCAicmVzb3VyY2VJZCI6ICIiLCAicHJvamVjdFJlc291cmNlSWQiOiAiIiwgImVuZHBvaW50IjogIiJ9LCAiY29kZVJvdXRlIjogWyJhaS1wcm9qZWN0cy1zZGsiLCAicHl0aG9uIiwgImRlZmF1bHQtYXp1cmUtYXV0aCIsICJlbmRwb2ludCJdfQ==)

1. Click the badge above (may take a few minutes to load)
2. Sign in with your Azure account when prompted
Expand All @@ -133,9 +135,17 @@ Select one of the following options to deploy the Document Generation Solution A
What would you like to do with these files?
- Overwrite with versions from template
- Keep my existing files unchanged
```
```
Choose “**Overwrite with versions from template**” and provide a unique environment name when prompted.
6. Proceed to [Step 3: Configure Deployment Settings](#step-3-configure-deployment-settings)

6. **Authenticate with Azure** (VS Code Web requires device code authentication):

```shell
az login --use-device-code
```
> **Note:** In VS Code Web environment, the regular `az login` command may fail. Use the `--use-device-code` flag to authenticate via device code flow. Follow the prompts in the terminal to complete authentication.

7. Proceed to [Step 3: Configure Deployment Settings](#step-3-configure-deployment-settings)

</details>

Expand Down Expand Up @@ -498,4 +508,4 @@ Run the deployment command:
azd up
```

> **Note:** These custom files are configured to deploy your local code changes instead of pulling from the GitHub repository.
> **Note:** These custom files are configured to deploy your local code changes instead of pulling from the GitHub repository.
14 changes: 14 additions & 0 deletions tests/e2e-test/config/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,25 @@
# browse input data
browse_question1 = "What are typical sections in a promissory note?"
browse_question2 = "List the details of two promissory notes governed by the laws of the state of California"
browse_question3 = "List all documents and their value"
browse_question4 = "list each promissory note, the borrower name, the lender name, the amount, and the interest rate in table format where the interest rate is not 5%"
browse_question5 = "list each promissory note, the borrower name, the lender name, the amount, and the interest rate in tabular format where the interest rate is not 5%"

# Generate input data
generate_question1 = "Generate promissory note for Washington State"
add_section = "Add Payment acceleration clause after the payment terms sections"

remove_section = "Remove Borrower Information Promissory note"

# Response Text Data
invalid_response = "I was unable to find content related to your query and could not generate a template. Please try again."
invalid_response1 = "An error occurred. Answers can't be saved at this time. If the problem persists, please contact the site administrator."


# Construct the absolute path to the JSON file
# Note: This section is commented out as prompts.json file doesn't exist
# All required constants are defined above
# json_file_path = os.path.join(repo_root, 'tests/e2e-test', 'testdata', 'prompts.json')
# with open(json_file_path, 'r') as file:
# data = json.load(file)
# questions = data['questions']
Loading