Skip to content

Commit 6b33926

Browse files
committed
update html test
1 parent facb0e8 commit 6b33926

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

tests/html-pages/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ Test locally with
99
```
1010
$ DEBUG=netlify-plugin-cypress ../../node_modules/.bin/netlify build
1111
```
12+
13+
These tests run:
14+
- [ ] before the build
15+
- [x] after the build
16+
- [ ] on deploy success

tests/html-pages/netlify.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ publish = "public"
66
# local Cypress plugin will test our site after it is built
77
# in production, please use: package = "netlify-plugin-cypress"
88
package = "../../"
9+
10+
# do not run tests after deploy
11+
[plugins.inputs]
12+
enable = false
13+
14+
# run and record tests post build
15+
[plugins.inputs.postBuild]
16+
enable = true

tests/recording/netlify.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ TERM = "xterm"
2020

2121
# run and record tests post build
2222
[plugins.inputs.postBuild]
23+
enable = true
2324
record = true
2425
group = "test once after build"
2526
tag = "recommended"

0 commit comments

Comments
 (0)