Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kcpevey committed Sep 18, 2023
1 parent 6a53bb9 commit dc14b04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
with:
mamba-version: "*"
activate-environment: test-env
environment-file: environment-dev.yaml
environment-file: environment_dev.yaml
auto-activate-base: false

- name: Deploy conda-store-server docker container
Expand All @@ -56,14 +56,15 @@ jobs:
yarn install
yarn run build
yarn run start
yarn test
- name: Run Playwright tests
run: |
playwright install
pytest --video on test/playwright/test_ux.py
pytest --video on --output test-results test/playwright/test_ux.py
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: playwright-tests
path: screenshots
path: test-results
12 changes: 6 additions & 6 deletions test/playwright/test_ux.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def login_sequence(page, screenshot=False):
page.locator("text=Log in").click()

if screenshot:
page.screenshot(path="screenshots/conda-store-login_screen.png")
page.screenshot(path="test-results/conda-store-login_screen.png")

# Fill in the Username field
page.locator('[placeholder="Username"]').fill("username")
Expand All @@ -51,7 +51,7 @@ def login_sequence(page, screenshot=False):
page.locator('button:has-text("Sign In")').click()

if screenshot:
page.screenshot(path="screenshots/conda-store-authenticated.png")
page.screenshot(path="test-results/conda-store-authenticated.png")


def create_new_environment(page, screenshot=False):
Expand Down Expand Up @@ -82,7 +82,7 @@ def create_new_environment(page, screenshot=False):
# click the + to create a new env
page.get_by_label("Create a new environment in the username namespace").click()
if screenshot:
page.screenshot(path="screenshots/conda-store-new-env.png")
page.screenshot(path="test-results/conda-store-new-env.png")
# fill in the env name
page.get_by_placeholder("Environment name").fill(new_env_name)
# fill in the description
Expand Down Expand Up @@ -154,7 +154,7 @@ def existing_environment_interactions(page, env_name, time_to_build_env=2*60*100
page.get_by_role("button", name="Edit").click()
page.get_by_label("Switch to YAML Editor").check()
if screenshot:
page.screenshot(path="screenshots/conda-store-yaml-editor.png")
page.screenshot(path="test-results/conda-store-yaml-editor.png")
page.get_by_text("- rich").click()
# TODO: is "-pip: nothing" a bug?
page.get_by_text("channels: - conda-forgedependencies: - rich - pip: - nothing - ipykernel").fill("channels:\n - conda-forge\ndependencies:\n - rich\n - python\n - pip:\n - nothing\n - ipykernel\n\n")
Expand Down Expand Up @@ -224,9 +224,9 @@ def test_integration(page: Page, test_config, screenshot):
# Go to http://localhost:{server_port}
page.goto(test_config['base_url'], wait_until="domcontentloaded")

page.screenshot(path="screenshots/conda-store-unauthenticated.png")
page.screenshot(path="test-results/conda-store-unauthenticated.png")
if screenshot:
page.screenshot(path="screenshots/conda-store-unauthenticated.png")
page.screenshot(path="test-results/conda-store-unauthenticated.png")

login_sequence(page, screenshot=screenshot)

Expand Down

0 comments on commit dc14b04

Please sign in to comment.