Skip to content

Commit

Permalink
chore: fix visual tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hikerpig committed Jun 12, 2024
1 parent 3082c5c commit ced3590
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Currently we need two shells to develop the live-editor demo.
./scripts/watch-for-browser.sh
```

2. Start the demo. When the CLI stops rolling, open `http://localhost:3001/demo/live-editor/` in
2. Start the demo. When the CLI stops rolling, open `https://localhost:3001/demo/live-editor/` in
your browser and you will see the editor page. It will reload once `demo/src` or its dependency packages change.

```sh
Expand All @@ -72,5 +72,5 @@ pnpm run compile
Build demo and docs site.

```sh
pnpm run build-site
pnpm run build-site
```
2 changes: 1 addition & 1 deletion demo/cypress/e2e/test-utils/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { encodeForUrl } from '@pintora/core'

export function startRender(opts: { code: string }) {
const { code } = opts
const DEMO_HOST = 'http://localhost:3001'
const DEMO_HOST = 'https://localhost:3001'
const encodedCode = encodeForUrl(code)
const demoUrl = `${DEMO_HOST}/demo/preview/?code=${encodedCode}&e2e=true`
return cy.visit(demoUrl)
Expand Down
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"cypress:open": "cypress open",
"local-test:visual": "percy exec -- cypress run",
"test:visual": "percy exec -- cypress run --record",
"ci:visual": "start-server-and-test serve http://localhost:3001/demo/preview/ test:visual"
"ci:visual": "start-server-and-test serve https://localhost:3001/demo/preview/ test:visual"
},
"dependencies": {
"@codemirror/basic-setup": "^0.20.0",
Expand Down

0 comments on commit ced3590

Please sign in to comment.