Skip to content

Commit

Permalink
support setting cypress browser from env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjduffy committed Jul 27, 2022
1 parent 210df24 commit ba264dd
Show file tree
Hide file tree
Showing 3 changed files with 16,435 additions and 15,708 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
environment:
RECORD_ALL_CONTENT: 1
RECORD_REPLAY_METADATA_FILE: /tmp/replay-metadata
CYPRESS_BROWSER: Replay Firefox

- run:
name: Install Replay CLI
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@
"start": "yarn workspace @mdx-deck/docs start",
"build": "yarn workspace @mdx-deck/docs build",
"export": "./packages/export/cli.js http://localhost:8000/print -o docs/public/deck.pdf",
"cypress:open": "cypress open",
"cypress:run": "cypress run --browser 'Replay Firefox'",
"cypress:record": "RECORD_ALL_CONTENT=1 RECORD_REPLAY_METADATA_FILE=$(mktemp) cypress run --browser 'Replay Firefox'",
"cypress:open": "cypress open --browser \"${CYPRESS_BROWSER}\"",
"cypress:run": "cypress run --browser \"${CYPRESS_BROWSER}\"",
"test:dev": "start-server-and-test start http://localhost:8000 cypress:open",
"jest": "jest",
"test": "RECORD_ALL_CONTENT=1 RECORD_REPLAY_METADATA_FILE=$(mktemp) jest && start-server-and-test start http://localhost:8000 cypress:run"
"test": "jest && start-server-and-test start http://localhost:8000 cypress:run"
},
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"@babel/preset-react": "^7.8.3",
"@replayio/cypress": "^0.2.10",
"@replayio/cypress": "^0.2.12",
"@testing-library/react": "^10.0.2",
"cypress": "^9.7.0",
"husky": "^4.2.1",
Expand Down

0 comments on commit ba264dd

Please sign in to comment.