test(workflows): Add test workflow (#2309)

Add separate test.yml workflow for running e2e tests on Mifos sandbox.
This commit is contained in:
Amanda
2025-03-09 00:16:54 -06:00
committed by GitHub
parent 2fec46af4d
commit 4a67c2f679
3 changed files with 37 additions and 1 deletions
+4 -1
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -x
env
BRANCH_NAME="$(git rev-parse --abbrev-ref HEAD)"
COMMIT_NAME="$(git rev-parse --verify HEAD)"
@@ -14,4 +16,5 @@ TEST_CASES_PATH="e2e/testRigor/testcases/**/*.txt"
RULES_PATH="e2e/testRigor/rules/**/*.txt"
# Command to run the tests using the testRigor CLI
testrigor test-suite run "$MIFOS_TEST_SUITE_ID" --token "$MIFOS_AUTH_TOKEN" --localhost --url "$LOCALHOST_URL" --test-cases-path "$TEST_CASES_PATH" --rules-path "$RULES_PATH" --branch "$BRANCH_NAME" --commit "$COMMIT_NAME"
testrigor test-suite run "$MIFOS_TEST_SUITE_ID" --token "$MIFOS_AUTH_TOKEN" --localhost --url "$LOCALHOST_URL" --test-cases-path "$TEST_CASES_PATH" --rules-path "$RULES_PATH" --branch "$BRANCH_NAME" --commit "$COMMIT_NAME"
set +x
@@ -1,6 +1,7 @@
// Setting wrong credentials
save value "wrong" as "username"
save value "wrongpassword" as "password"
validate-login-page
login
// validate invalid login message
check that page contains "Invalid User Details. Please try again!"