Skip to content

run e2e tests on every PR - #74

Closed
miparnisari wants to merge 1 commit into
mainfrom
run-e2e
Closed

miparnisari wants to merge 1 commit into
mainfrom
run-e2e

Conversation

@miparnisari

@miparnisari miparnisari commented Jun 9, 2025 •

Copy link
Copy Markdown
Contributor

Testing

 $ yarn dev & sleep 60 && yarn cy:run
[1] 87960
yarn run v1.22.22
$ HTTPS=true vite
Re-optimizing dependencies because lockfile has changed

  VITE v6.0.7  ready in 212 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help
Browserslist: browsers data (caniuse-lite) is 10 months old. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
yarn run v1.22.22
$ cypress run --browser chrome --headless

DevTools listening on ws://127.0.0.1:50806/devtools/browser/fe864521-3fce-43c4-8c55-8cb37ad226ed
(node:88031) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("file%3A///Users/miparnisari/Library/Caches/Cypress/12.17.4/Cypress.app/Contents/Resources/app/node_modules/ts-node/esm/transpile-only.mjs", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
(node:88031) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        12.17.4                                                                        │
  │ Browser:        Chrome 141 (headless)                                                          │
  │ Node Version:   v22.14.0 (/Users/miparnisari/.nvm/versions/node/v22.14.0/bin/node)             │
  │ Specs:          2 found (basic.spec.js, nav.spec.js)                                           │
  │ Searched:       cypress/integration/**/*.spec.{js,ts}, cypress/e2e/**/*.cy.{js,jsx,ts,tsx}     │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  basic.spec.js                                                                   (1 of 2)
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme


  Playground
    ✓ displays tutorial (1414ms)
    ✓ can dismiss tutorial (858ms)
    ✓ displays header buttons (528ms)
    ✓ default validation succeeds (1831ms)


  4 passing (5s)


  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        4                                                                                │
  │ Passing:      4                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     4 seconds                                                                        │
  │ Spec Ran:     basic.spec.js                                                                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  nav.spec.js                                                                     (2 of 2)


  Navigation
    ✓ displays schema tab (1474ms)
    ✓ displays relationships tab (791ms)
    ✓ displays assertions tab (660ms)
    ✓ displays expected relations tab (615ms)
1:09:24 PM [vite] (client) page reload cypress/downloads/downloads.html
1:09:24 PM [vite] (ssr) page reload cypress/downloads/downloads.html (x2)
1:09:24 PM [vite] (client) page reload cypress/downloads/downloads.html (x3)
1:09:24 PM [vite] (ssr) page reload cypress/downloads/downloads.html (x4)
    ✓ displays panels (2406ms)


  5 passing (6s)


  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        5                                                                                │
  │ Passing:      5                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     5 seconds                                                                        │
  │ Spec Ran:     nav.spec.js                                                                      │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


====================================================================================================

  (Run Finished)


       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔  basic.spec.js                            00:04        4        4        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  nav.spec.js                              00:05        5        5        -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✔  All specs passed!                        00:10        9        9        -        -        -  

✨  Done in 15.55s.
[13:09:25] ~/Documents/GitHub/playground/build (run-e2e) $ 

@vercel

vercel Bot commented Jun 9, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
playground Ready Ready Preview, Comment Feb 11, 2026 4:14pm

Request Review

Comment thread cypress.config.ts

e2e: {
baseUrl: "http://localhost:3000",
baseUrl: "http://localhost:5173",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch was successfully deployed

1 active deployment
Preview — b2584a50 Deployed Feb 11, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant