test: fix general test and CI (#2839)

🔧 (typescript_test.yml): Remove unnecessary steps and conditions in GitHub Actions workflow file
🔧 (authContext.tsx): Update cookie key from LANGFLOW_ACCESS_TOKEN to LANGFLOW_API_TOKEN for consistency
🔧 (Basic Prompting.spec.ts): Update test to click on correct dropdown option
🔧 (filterEdge-shard-0.spec.ts): Update test to check for correct element
🔧 (filterSidebar.spec.ts): Update test to check for correct elements
🔧 (generalBugs-shard-5.spec.ts): Update test to interact with correct element
🔧 (inputComponent.spec.ts): Update test to interact with correct elements
🔧 (store-shard-1.spec.ts): Update test to interact with correct elements and remove unnecessary code
This commit is contained in:
Cristhian Zanforlin Lousa 2024-07-19 15:38:14 -03:00 committed by GitHub
commit 9c9d916d80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 32 additions and 34 deletions

View file

@ -110,15 +110,8 @@ jobs:
run: |
cd src/frontend
npx playwright test --trace on --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --workers 2
continue-on-error: true
timeout-minutes: 12
# If the test fails, set a flag to indicate that the shard failed
- name: Set failure flag
id: check-failure
if: failure()
run: echo "failed=true" >> "$GITHUB_OUTPUT"
- name: Upload blob report to GitHub Actions Artifacts
if: always()
uses: actions/upload-artifact@v4
@ -130,7 +123,6 @@ jobs:
merge-reports:
needs: setup-and-test
runs-on: ubuntu-latest
if: ${{ needs.setup-and-test.outputs.failed == 'true' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
@ -157,11 +149,3 @@ jobs:
name: html-report--attempt-${{ github.run_attempt }}
path: playwright-report
retention-days: 14
delete-reports:
needs: setup-and-test
runs-on: ubuntu-latest
if: ${{ needs.setup-and-test.outputs.failed != 'true' }}
steps:
- uses: geekyeggo/delete-artifact@v5
with:
name: blob-report-*