Skip to content

Commit

Permalink
Readd playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
soapy1 committed Feb 13, 2025
1 parent 03a970e commit a4e24a5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/test_local_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,38 +112,38 @@ jobs:
max-restarts: 3

### DEPLOYMENT TESTS
# - name: Deployment Pytests
# env:
# NEBARI_CONFIG_PATH: ${{ steps.init.outputs.config }}
# KEYCLOAK_USERNAME: ${{ env.TEST_USERNAME }}
# KEYCLOAK_PASSWORD: ${{ env.TEST_PASSWORD }}
# run: |
# pytest tests/tests_deployment/ -v -s

# ### USER-JOURNEY TESTS
# - uses: actions/setup-node@v4
# with:
# node-version: 20

# - name: Playwright Tests
# env:
# KEYCLOAK_USERNAME: ${{ env.TEST_USERNAME }}
# KEYCLOAK_PASSWORD: ${{ env.TEST_PASSWORD }}
# NEBARI_FULL_URL: "https://${{ steps.init.outputs.domain }}/"
# working-directory: tests/tests_e2e/playwright
# run: |
# # create environment file
# envsubst < .env.tpl > .env
# # run playwright pytest tests in headed mode with the chromium browser
# xvfb-run pytest --browser chromium --slowmo 300 --headed

# - name: Save Playwright recording artifacts
# if: always()
# uses: actions/upload-artifact@v4.3.1
# with:
# name: e2e-playwright
# path: |
# ./tests/tests_e2e/playwright/videos/
- name: Deployment Pytests
env:
NEBARI_CONFIG_PATH: ${{ steps.init.outputs.config }}
KEYCLOAK_USERNAME: ${{ env.TEST_USERNAME }}
KEYCLOAK_PASSWORD: ${{ env.TEST_PASSWORD }}
run: |
pytest tests/tests_deployment/ -v -s
### USER-JOURNEY TESTS
- uses: actions/setup-node@v4
with:
node-version: 20

- name: Playwright Tests
env:
KEYCLOAK_USERNAME: ${{ env.TEST_USERNAME }}
KEYCLOAK_PASSWORD: ${{ env.TEST_PASSWORD }}
NEBARI_FULL_URL: "https://${{ steps.init.outputs.domain }}/"
working-directory: tests/tests_e2e/playwright
run: |
# create environment file
envsubst < .env.tpl > .env
# run playwright pytest tests in headed mode with the chromium browser
xvfb-run pytest --browser chromium --slowmo 300 --headed
- name: Save Playwright recording artifacts
if: always()
uses: actions/upload-artifact@v4.3.1
with:
name: e2e-playwright
path: |
./tests/tests_e2e/playwright/videos/
### CONDA-STORE TESTS
- name: "Checkout conda-store"
Expand Down
2 changes: 1 addition & 1 deletion scripts/get_conda_store_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ def get_conda_store_session_token(username, password, nebari_hostname):
password = os.environ.get("KEYCLOAK_PASSWORD")
url = os.environ.get("BASE_URL")
token = get_conda_store_session_token(username, password, url)
print(token)
print(token)

0 comments on commit a4e24a5

Please sign in to comment.