@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 9d05d56
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 18:15 UTC

Require live test credentials and update error handling

Updated test configuration to ensure live test credentials are required and changed error handling for test execution.

davoodmehraban89 committed Oct 1, 2026 at 11:48 UTC 9d05d56fc2b9898c36da73b7ee229cce9ec8f871
1 file changed +16 -2
.github/workflows/qa.yml
+16 -2
@@ -114,7 +114,9 @@ jobs:
114 const PASS = process.env.TEST_PASSWORD;
115 const NAV_SELECTOR = process.env.NAV_SELECTOR || 'nav a, nav button, aside a, aside button, [data-view], [onclick*="show"]';
116 const SKIP = /حذف|پاک|خروج|delete|remove|logout|sign out/i;
117 - test.skip(!EMAIL || !PASS, 'TEST_EMAIL / TEST_PASSWORD secrets are not set');
117 + test('live test credentials are configured', async () => {
118 + expect(EMAIL && PASS, 'TEST_EMAIL / TEST_PASSWORD secrets are required for live QA').toBeTruthy();
119 +});
120
121 async function login(page) {
122 await page.goto('/');
@@ -179,7 +181,7 @@ jobs:
181
182 - name: Run tests
183 working-directory: qa
182 - continue-on-error: true
184 + continue-on-error: false
185 env:
186 BASE_URL: ${{ inputs.base_url }}
187 TEST_EMAIL: ${{ secrets.TEST_EMAIL }}
@@ -191,6 +193,18 @@ jobs:
193 *) npx playwright test ;;
194 esac
195
196 +
197 + - name: Live Read+Write audit scenarios
198 + if: inputs.suite == 'live' || inputs.suite == 'all'
199 + working-directory: qa
200 + run: |
201 + echo "AUDIT-TEST- prefix is mandatory for all write scenarios."
202 + echo "Add Playwright CRUD flows here:"
203 + echo "- create AUDIT-TEST records"
204 + echo "- verify persistence"
205 + echo "- refresh and re-read"
206 + echo "- cleanup only AUDIT-TEST records"
207 +
208 - name: Summary
209 if: always()
210 working-directory: qa