We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46cc4e5 commit 2a4950dCopy full SHA for 2a4950d
demo/cypress/integration/test.spec.ts
@@ -1,5 +1,9 @@
1
describe('TypeScript spec', () => {
2
- it('works', () => {
3
- cy.wrap('foo').should('equal', 'foo')
+ beforeEach(() => {
+ cy.visit('/')
4
+ })
5
+
6
+ it('loads home page', () => {
7
+ cy.findByText('Next Demo!')
8
})
9
demo/netlify.toml
@@ -3,6 +3,11 @@ command = "next build"
publish = ".next"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../"
+[build.environment]
+# cache Cypress binary in local "node_modules" folder
+# so Netlify caches it
+CYPRESS_CACHE_FOLDER = "../node_modules/CypressBinary"
10
11
[dev]
12
framework = "#static"
13
0 commit comments