Skip to content

Commit 84334eb

Browse files
author
Tiffany Le-Nguyen
authored
chore: add to cypress dashboard for all demo sites (opennextjs#899)
* chore: add to cypress dashboard default * Update netlify.toml * Update netlify.toml * chore: add cypress record to other demo sites
1 parent e801af1 commit 84334eb

File tree

7 files changed

+13
-4
lines changed

7 files changed

+13
-4
lines changed

cypress/config/ci.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"pluginsFile": "../../cypress/plugins",
55
"screenshotsFolder": "../../cypress/screenshots",
66
"supportFile": "../../cypress/support/index.js",
7-
"videoFolder": "../../cypress/videos"
7+
"videoFolder": "../../cypress/videos",
8+
"projectId": "66va58"
89
}

cypress/config/nx-demo.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"pluginsFile": "../../cypress/plugins",
55
"screenshotsFolder": "../../cypress/screenshots",
66
"supportFile": "../../cypress/support/index.js",
7-
"videoFolder": "../../cypress/videos"
7+
"videoFolder": "../../cypress/videos",
8+
"projectId": "ijcdpo"
89
}

cypress/config/static-root.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"pluginsFile": "../../cypress/plugins",
55
"screenshotsFolder": "../../cypress/screenshots",
66
"supportFile": "../../cypress/support/index.js",
7-
"videoFolder": "../../cypress/videos"
7+
"videoFolder": "../../cypress/videos",
8+
"projectId": "3tvrbe"
89
}

demos/default/netlify.toml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ publish = ".next"
77
# cache Cypress binary in local "node_modules" folder
88
# so Netlify caches it
99
CYPRESS_CACHE_FOLDER = "../node_modules/.CypressBinary"
10+
# set TERM variable for terminal output
11+
TERM = "xterm"
1012

1113
[dev]
1214
framework = "#static"
@@ -21,4 +23,5 @@ package = "@netlify/plugin-local-install-core"
2123
package = "netlify-plugin-cypress"
2224

2325
[context.deploy-preview.plugins.inputs]
26+
record = true
2427
configFile = "../../cypress/config/ci.json"

demos/nx-next-monorepo-demo/netlify.toml

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ package = "./local-plugin"
1414
# cache Cypress binary in local "node_modules" folder
1515
# so Netlify caches it
1616
CYPRESS_CACHE_FOLDER = "../node_modules/.CypressBinary"
17+
# set TERM variable for terminal output
18+
TERM = "xterm"
1719

1820
[[plugins]]
1921
package = "@netlify/plugin-local-install-core"
@@ -22,4 +24,5 @@ package = "@netlify/plugin-local-install-core"
2224
package = "netlify-plugin-cypress"
2325

2426
[context.deploy-preview.plugins.inputs]
27+
record = true
2528
configFile = "../../cypress/config/nx-demo.json"

demos/static-root/netlify.toml

+1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ package = "@netlify/plugin-local-install-core"
2121
package = "netlify-plugin-cypress"
2222

2323
[context.deploy-preview.plugins.inputs]
24+
record = true
2425
configFile = "../../cypress/config/static-root.json"

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"scripts": {
1111
"build:demo": "next build demos/default",
1212
"cy:open": "cypress open --config-file cypress/config/all.json",
13-
"cy:run": "cypress run --config-file ../../cypress/config/ci.json",
1413
"dev:demo": "next dev demos/default",
1514
"format": "run-s format:check-fix:*",
1615
"format:ci": "run-s format:check:*",

0 commit comments

Comments
 (0)