parse-dashboard icon indicating copy to clipboard operation
parse-dashboard copied to clipboard

test: Cypress e2e setup

Open mehulmathur16 opened this issue 1 year ago • 8 comments

Follow this for running e2e tests on local :

  1. Run npm dashboard for running the server.
  2. If you want to run tests on UI interactive mode. Execute npm run cypress:open. This script will open cypress UI, then you need to select e2e testing, after which you can run specific tests.

OR

  1. If you want to run all tests on CLI, execute npm run cypress:run.

Currently, some tests might fail, as I have made changes to src/ react components, which are not updating while I was testing this out on my local system. The npm run dashboard command seems to serve the same UI always.

Closes: #2007

mehulmathur16 avatar May 02 '24 19:05 mehulmathur16

Thanks for opening this pull request!

I will reformat the title to use the proper commit message syntax.

Uffizzi Ephemeral Environment deployment-51174

:watch: Updated May 02, 2024, 19:29 UTC

:cloud: https://app.uffizzi.com/github.com/parse-community/parse-dashboard/pull/2552

:page_facing_up: View Application Logs etc.

What is Uffizzi? Learn more

uffizzi-cloud[bot] avatar May 02 '24 19:05 uffizzi-cloud[bot]

Could you add the UI test to the CI by adding something like this to ci.yml?

check-ui:
    name: UI Check
    timeout-minutes: 15
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Use Node.js ${{ env.NODE_VERSION }}
        uses: actions/setup-node@v4
        with:
          node-version: ${{ env.NODE_VERSION }}
          cache: npm
      - name: Install dependencies
        run: npm ci --ignore-scripts
      - name: UI Check
        run: npm run cypress:run

And could you check the failing lint job?

mtrezza avatar May 03 '24 00:05 mtrezza

@mtrezza I have resolved the above. Can you please approve the workflow request ?

mehulmathur16 avatar May 03 '24 12:05 mehulmathur16

@mtrezza Some cypress tests are failing currently. I'll fix them in sometime.

mehulmathur16 avatar May 03 '24 22:05 mehulmathur16

Could we move the Cypress tests into a subdirectory ui of the existing tests? Just so that tests are all in one place.

And what are the benefits of choosing Cyprus over puppet to you? Is it faster, more popular, more versatile, etc? One criterium we should keep in mind is that we want to make it as easy as possible for contributors to write tests along with their PRs, so we improve the coverage.

mtrezza avatar May 04 '24 20:05 mtrezza