nutritious-army-46708
10/04/2022, 3:15 PMmelodic-egg-83620
10/04/2022, 5:53 PM// Packages
import 'cypress-each'
// Helpers
import ValidationMixin from '@/utils/validation-mixin'
describe('Validation unit tests', () => {
// context('Methods', () => {
// const phoneTests = [...]
// it.each(phoneTests)(
// (test) => {
// return `isValidPhone testing ${test.number}`
// },
// (test) => {
// expect(ValidationMixin.methods.isValidPhone(test.number)).to.equal(test.expectation)
// }
// )
// })
})
It doesn't even recognize I changed import ValidationMixin...
from import { ValidationMixin as VM } ...
, and yet is still trying to run tests I commented out.freezing-wall-7568
10/04/2022, 6:40 PMthankful-dawn-86064
10/04/2022, 7:55 PMcy.get("#image-upload").click().selectFile("file");
. After running the test image isn't selecting but (at least on my computer) opening 'open file' window. Is there any way to fix that without selecting input that is hidden?nutritious-army-46708
10/04/2022, 8:12 PMstale-optician-85950
10/04/2022, 9:20 PMCypress open
, I have had this issue for months (since v9.7.0). After trying many different tricks, I've settled on this: When running Cypress Chrome browser I need to keep a second tab open for Settings > Privacy & Security > Clear browsing data > Tick 'Cookies and other site data'. And every now and then I need to Clear data
to get Cypress running my latest code.melodic-egg-83620
10/04/2022, 9:28 PMstale-optician-85950
10/04/2022, 9:31 PMmelodic-egg-83620
10/04/2022, 9:31 PMstale-optician-85950
10/04/2022, 9:34 PMcypress.config.ts
file to --disable-application-cache
for extra approach, from docs https://docs.cypress.io/api/plugins/browser-launch-api:
setupNodeEvents: async (on, config) => {
on(
'before:browser:launch',
(
// eslint-disable-next-line default-param-last
browser = {
name: '',
family: 'chromium',
channel: '',
displayName: '',
version: '',
majorVersion: '',
path: '',
isHeaded: false,
isHeadless: false,
},
launchOptions
) => {
// `args` is an array of all the arguments that will be passed to browsers when it launches
if (browser.family === 'chromium' && browser.name !== 'electron') {
launchOptions.args.push('--auto-open-devtools-for-tabs', '--disable-application-cache');
consola.info('Chromium flags set:', launchOptions.args);
}
return launchOptions;
}
);
melodic-egg-83620
10/04/2022, 9:48 PMmelodic-egg-83620
10/04/2022, 9:53 PMmelodic-egg-83620
10/04/2022, 9:53 PMstale-optician-85950
10/04/2022, 9:55 PMhappy-megabyte-98400
10/04/2022, 10:09 PMmelodic-egg-83620
10/05/2022, 12:16 AMgorgeous-rocket-91779
10/05/2022, 1:46 AMgreen-translator-24136
10/05/2022, 8:00 AMstale-optician-85950
10/05/2022, 8:16 AMexport default defineConfig({
watchForFileChanges: false,
Good luck with it.ripe-shampoo-28033
10/05/2022, 10:08 AMagreeable-scooter-87343
10/05/2022, 10:41 AMnice-horse-33158
10/05/2022, 12:51 PMbrave-river-4142
10/05/2022, 1:05 PMvictorious-island-73736
10/05/2022, 2:09 PMcareful-insurance-62240
10/05/2022, 2:30 PMbreezy-room-97976
10/05/2022, 2:38 PMmysterious-belgium-25713
10/05/2022, 2:45 PMbreezy-room-97976
10/05/2022, 3:06 PMTypeError: path argument is required to res.sendFile
at ServerResponse.sendFile (C:\Users\ks\AppData\Local\Cypress\Cache\10.9.0\Cypress\resources\app\node_modules\express\lib\response.js:411:11)
at tryCatcher (C:\Users\ks\AppData\Local\Cypress\Cache\10.9.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\util.js:16:23)
at ret (<anonymous>:14:23)
at C:\Users\ks\AppData\Local\Cypress\Cache\10.9.0\Cypress\resources\app\packages\server\lib\controllers\spec.js:44:14
at tryCatcher (C:\Users\ks\AppData\Local\Cypress\Cache\10.9.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\ks\AppData\Local\Cypress\Cache\10.9.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (C:\Users\ks\AppData\Local\Cypress\Cache\10.9.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromiseCtx (C:\Users\ks\AppData\Local\Cypress\Cache\10.9.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:641:10)
at _drainQueueStep (C:\Users\ks\AppData\Local\Cypress\Cache\10.9.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\async.js:97:12)
at _drainQueue (C:\Users\ks\AppData\Local\Cypress\Cache\10.9.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (C:\Users\ks\AppData\Local\Cypress\Cache\10.9.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\ks\AppData\Local\Cypress\Cache\10.9.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (node:internal/timers:466:21)
breezy-room-97976
10/05/2022, 3:06 PMagreeable-scooter-87343
10/05/2022, 3:13 PM