Skip to content

Commit ba264dd

Browse files
committed
support setting cypress browser from env variables
1 parent 210df24 commit ba264dd

File tree

3 files changed

+16435
-15708
lines changed

3 files changed

+16435
-15708
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
environment:
4141
RECORD_ALL_CONTENT: 1
4242
RECORD_REPLAY_METADATA_FILE: /tmp/replay-metadata
43+
CYPRESS_BROWSER: Replay Firefox
4344

4445
- run:
4546
name: Install Replay CLI

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@
1010
"start": "yarn workspace @mdx-deck/docs start",
1111
"build": "yarn workspace @mdx-deck/docs build",
1212
"export": "./packages/export/cli.js http://localhost:8000/print -o docs/public/deck.pdf",
13-
"cypress:open": "cypress open",
14-
"cypress:run": "cypress run --browser 'Replay Firefox'",
15-
"cypress:record": "RECORD_ALL_CONTENT=1 RECORD_REPLAY_METADATA_FILE=$(mktemp) cypress run --browser 'Replay Firefox'",
13+
"cypress:open": "cypress open --browser \"${CYPRESS_BROWSER}\"",
14+
"cypress:run": "cypress run --browser \"${CYPRESS_BROWSER}\"",
1615
"test:dev": "start-server-and-test start http://localhost:8000 cypress:open",
1716
"jest": "jest",
18-
"test": "RECORD_ALL_CONTENT=1 RECORD_REPLAY_METADATA_FILE=$(mktemp) jest && start-server-and-test start http://localhost:8000 cypress:run"
17+
"test": "jest && start-server-and-test start http://localhost:8000 cypress:run"
1918
},
2019
"devDependencies": {
2120
"@babel/core": "^7.8.4",
2221
"@babel/preset-env": "^7.8.4",
2322
"@babel/preset-react": "^7.8.3",
24-
"@replayio/cypress": "^0.2.10",
23+
"@replayio/cypress": "^0.2.12",
2524
"@testing-library/react": "^10.0.2",
2625
"cypress": "^9.7.0",
2726
"husky": "^4.2.1",

0 commit comments

Comments
 (0)