You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Behind the scenes, the uploaded files have been saved as `window.uploadedFiles` for use both in your user's code and in your own validation. In your `validate` function, we recommend saving the files to a variable and allowing for the fact that they may not be present. For example:
591
591
592
592
```js
593
-
constuploadedFiles=window.uploadedFiles||false
593
+
constuploadedFiles=window.uploadedFiles||[]
594
594
```
595
595
596
596
Remember that these files are stored as browser file objects. Reference the [Files documentation](https://developer.mozilla.org/en-US/docs/Web/API/File#Properties) to see what properties are available to both you and the user, including `name` and `type`.
"build:fleek": "npm ci && npm run sitemap && npm run scripts:build:data -- --dry-run=false && npm run test:jest && npm run build && start-server-and-test cy:serve http://localhost:3000 cy:run",
12
+
"build:fleek": "npm ci && npm run sitemap && npm run scripts:build:data -- --dry-run=false && npm run test:jest && npm run build && npm run cy:run:ci",
13
13
"cy:open": "cypress open",
14
14
"cy:run": "cypress run --browser chrome",
15
+
"cy:run:ci": "start-server-and-test cy:serve http://localhost:3000 \"cypress run --browser chrome\" && start-server-and-test cy:serve http://localhost:3000 \"cypress run --browser firefox\"",
0 commit comments