Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(ui-tests): allow ui tests on workflow dispatch (#1843)

Jaganc9fd421d09db
diff --git a/.github/workflows/connector-ui-sanity-tests.yml b/.github/workflows/connector-ui-sanity-tests.yml
index 9586b299d1..9c81d715b1 100644
--- a/.github/workflows/connector-ui-sanity-tests.yml
+++ b/.github/workflows/connector-ui-sanity-tests.yml
@@ -3,9 +3,9 @@ name: Connector UI Sanity Tests
on:
workflow_dispatch:
- pull_request:
pull_request_review:
- types: [submitted]
+ types:
+ - submitted
merge_group:
types:
- checks_requested
@@ -84,33 +84,33 @@ jobs:
exit 0
- name: Checkout repository
- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'
+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
uses: actions/checkout@v3
- name: Decrypt connector auth file
- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'
+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
env:
CONNECTOR_AUTH_PASSPHRASE: ${{ secrets.CONNECTOR_AUTH_PASSPHRASE }}
shell: bash
run: ./scripts/decrypt_connector_auth.sh
- name: Set connector auth file path in env
- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'
+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
shell: bash
run: echo "CONNECTOR_AUTH_FILE_PATH=$HOME/target/test/connector_auth.toml" >> $GITHUB_ENV
- name: Set connector tests file path in env
- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'
+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
shell: bash
run: echo "CONNECTOR_TESTS_FILE_PATH=$HOME/target/test/connector_tests.json" >> $GITHUB_ENV
- name: Set ignore_browser_profile usage in env
- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'
+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
shell: bash
run: echo "IGNORE_BROWSER_PROFILE=true" >> $GITHUB_ENV
- name: Install latest compiler
- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'
+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
uses: actions-rs/toolchain@v1
with:
toolchain: stable
@@ -118,21 +118,21 @@ jobs:
- uses: Swatinem/[email protected]
- uses: baptiste0928/[email protected]
- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'
+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
with:
crate: diesel_cli
features: postgres
args: "--no-default-features"
- name: Diesel migration run
- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'
+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
shell: bash
env:
DATABASE_URL: postgres://db_user:db_pass@localhost:5432/hyperswitch_db
run: diesel migration run
- name: Start server and run tests
- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'
+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
env:
UI_TESTCASES_PATH: ${{ secrets.UI_TESTCASES_PATH }}
INPUT: ${{ matrix.connector }}
@@ -140,12 +140,12 @@ jobs:
run: sh .github/scripts/run_ui_tests.sh
- name: View test results
- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'
+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
shell: bash
run: cat tests/test_results.log
- name: Check test results
- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'
+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
shell: bash
run: |
if test "$( grep 'test result: FAILED' -r tests/test_results.log | wc -l )" -gt "0"; then
diff --git a/.typos.toml b/.typos.toml
index 2a102ed908..a9e90e319c 100644
--- a/.typos.toml
+++ b/.typos.toml
@@ -16,6 +16,7 @@ RegioBank = "RegioBank"
SOM = "SOM" # Somalia country code
THA = "THA" # Thailand country code
ZAR = "ZAR" # South African Rand currency code
+SUR = "SUR" # Single South American currency code
passord = "passord" # name of a css class for adyen ui test
bottm = "bottm" # name of a css class for nexinets ui test
klick = "klick" # Swedish word for clicks