Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Playwright setup #2500

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

Feat: Playwright setup #2500

wants to merge 11 commits into from

Commits on Nov 4, 2024

  1. feat: add setup for a separate container to run playwright

    use a base image that already has playwright and its browsers installed
    angela-tran committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    816aacc View commit details
    Browse the repository at this point in the history
  2. feat(playwright): add scaffolding for writing and running tests

    add some test stubs, with one test that is a work-in-progress.
    
    the devcontainer will have pytest-playwright installed so that when
    we're writing tests, we can use auto-complete, reference code definition,
    etc.
    
    use the 'playwright' service container to run the tests. there is a sample
    .env file and a helper script for running tests.
    angela-tran committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    d8bb7cd View commit details
    Browse the repository at this point in the history
  3. refactor: extract some helper script args out into pytest.ini file

    this makes it so they are used any time pytest is invoked from this
    directory
    angela-tran committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    fed78b6 View commit details
    Browse the repository at this point in the history
  4. test: add agency card flow test

    this implements it in a simple way that works. there are probably
    improvements that can be made, e.g. not waiting 10 seconds for the
    enrollment to finish.
    
    mark medicaregov flow test to be skipped.
    angela-tran committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    2b10995 View commit details
    Browse the repository at this point in the history
  5. fix(ci): specify directory to use for running unit tests

    since the tests-pytest workflow runs from the root level, it was also
    collecting Playwright tests.
    angela-tran committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    f5ecfb4 View commit details
    Browse the repository at this point in the history
  6. fix(ci): mark 'playwright' service under a 'testing' profile

    the tests-cypress workflow was failing because there is no .env file
    for the playwright service, but we don't even need that service to
    start.
    
    this makes it so it is not started by default.
    see https://docs.docker.com/compose/how-tos/profiles/ for more.
    angela-tran committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    787e769 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2024

  1. refactor: use optional env_file instead of profile-based approach

    to ensure playwright service doesn't prevent other services from
    starting if the `playwright/.env` file doesn't exist
    angela-tran committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    ac111d6 View commit details
    Browse the repository at this point in the history
  2. refactor(tests): remove usage of .env file entirely for now

    keep the scope of this PR small. namely, this PR is for setting up the
    environment in which we run and write tests.
    
    figuring out if and how the tests get their values is a separate task
    outside the scope of this PR.
    angela-tran committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    2589eb7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c980ff0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bff1ec0 View commit details
    Browse the repository at this point in the history
  5. refactor: simplify helper script

    further discussion is needed on how exactly we will pass
    environment-specific information to the tests.
    angela-tran committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    694aeae View commit details
    Browse the repository at this point in the history