Docs: https://docs.cypress.io | Issues: https://github.com/cypress-io/cypress/issues
Bkucera on test-orchestration
chore: release @cypress/webpack… fix(component-testing): Layout … build: use rollup to pack cypre… and 13 more (compare)
JessicaSachs on runner-ct-ui-improvements
chore: fixing the broken relati… (compare)
Bkucera on test-orchestration
fix bug with spec SKIP not stop… (compare)
Hi Everyone.
Have a question before raising this futher as a potential bug. I'm getting getting a cors origina error for superdomains error when attempting to visit a subdomain which has a .
in the middle
cypress.json:
{baseurl: 'https://subdomain.domain.com'}
in test file:
it('does some admin tasks', () => {
cy.visit('https://subdomain.admin.domain.com')
Cypress detected a cross origin error happened on page load:
Blocked a frame with origin "subdomain.admin.domain.com" from accessing a cross-origin frame.
Before the page load, you were bound to the origin policy:
https://domain.com
Am I wrong in thinking that I should be able to visit all subdomains, regardless of them have a .
in them?
cypress/included
image. It seems to be able to visit a page, but not actually find or manipulate on that page. Turning on the debug logging, it appears to simply hang forever, always at the same place. We've tried increasing the memory to 6gb, disabling shm in Chrome, using Electron, but nothing seems to work. Does anyone have any experience or insight?
suddenly having trouble getting tests to run in windows.
i get Unable to Read property 'name' of undefined
and it says this is the line(s):
const runEachSpec = (spec, index, length, estimated) => {
if (!options.quiet) {
displaySpecHeader(spec.name, index + 1, length, estimated)
}
what could be the issue? started failing yesterday
dir ${Cypress.config('fixturesFolder')}
) to list all files in fixtures folders and it is there. I've also tried with a smaller file and it worked in this case.~/server
) and I'd like to import this code into a plugin file. I know I can use WebPack preprocessor for test files, but how do I tell Cypress to respect my aliases in plugin files themselves? Don't see anything on docs or Google about this. Use case is to have a "reset db" plugin that calls our server code to seed the DB using our models directly. Is this possible or should I try something else?
Hello. I'm using WSL and want to test project inside WSL, but I don't want to setup X server, since result is ugly and buggy. So, I'm using pnpx cypress open
to run Cypress, pointing it to WSL directory and getting EISDIR
when file watcher is trying to watch /
:
Error: EISDIR: illegal operation on a directory, watch '/'
at FSWatcher.start (internal/fs/watchers.js:165:26)
at Object.watch (fs.js:1329:11)
at createFsWatchInstance (C:\Users\kpopo\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\node_modules\chokidar\lib\nodefs-handler.js:116:15)
at setFsWatchListener (C:\Users\kpopo\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\node_modules\chokidar\lib\nodefs-handler.js:163:15)
at NodeFsHandler._watchWithNodeFs (C:\Users\kpopo\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\node_modules\chokidar\lib\nodefs-handler.js:325:14)
at NodeFsHandler._handleDir (C:\Users\kpopo\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\node_modules\chokidar\lib\nodefs-handler.js:548:19)
at NodeFsHandler._addToNodeFs (C:\Users\kpopo\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\node_modules\chokidar\lib\nodefs-handler.js:597:27)
at C:\Users\kpopo\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\node_modules\chokidar\index.js:435:21
at async Promise.all (index 0) {
errno: -4068,
syscall: 'watch',
code: 'EISDIR',
path: '/',
filename: '/'
}
Any ideas how to proceed from here or debug this?
iframepage.switch('#_bmain').xpath("user name").type('')
iframepage.switch('#_bmain').xpath("password").type('')
iframepage.switch('#_bmain').xpath("login button").click()
after login this, a popup alert message with OK button is coming which is not closing automatically and i am unable to close it with any manual code.. (we can't inspect the coming popup)
Example , i used below codes:
cy.on('window:alert', msg => alerted = msg);
cy.get('button').contains('OK').click()
Cypress.on('window:load', function(window) {
const original = window.addEventListener;
window.addEventListener = function() {
if (arguments && arguments[0] === 'onbeforeunload') {
return;
}
return original.apply(this, arguments);
};
})
iframepage.switch('#_bmain').xpath("user name").type('')
iframepage.switch('#_bmain').xpath("password").type('')
iframepage.switch('#_bmain').xpath("login button").click()
after login this, a popup alert message with OK button is coming which is not closing automatically and i am unable to close it with any manual code.. (we can't inspect the coming popup)
Example , i used below codes:
if (arguments && arguments[0] === 'onbeforeunload') {
return;
}
return original.apply(this, arguments);
};