Docs: https://docs.cypress.io | Issues: https://github.com/cypress-io/cypress/issues
JessicaSachs on runner-ct-ui-improvements
wip: nav bar external link fix (compare)
JessicaSachs on runner-ct-ui-improvements
wip: nav bar (compare)
lmiller1990 on vite-react-issues
fix: add support file and unmou… (compare)
lmiller1990 on unmount-after-each-spec-vite
fix: ensure to call unmount aft… (compare)
lmiller1990 on vite-react-issues
add missing export (compare)
lmiller1990 on see-if-ci-fails
add failing test (compare)
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);
};Hi there,
I have impltemented the OKTA but somehow its keep giving me OKTA login screen even though I see it working 200 response.
I did some research and figured the "samesite " cookie related issue. I added a code
cy.set('sameSite', value). //i tried all values.
But still getting the error.
Does any one face this issue?
it('test Login to atmos via OKTA', () => {
console.log('inside the before', " user name -");
//first cy.request you need to get a OKTA session token
cy.request(optionsSessionToken)
.then(resp => {
const sessionToken = resp.body.sessionToken;
cy.request({
method: 'GET',
url: 'atmosURL&sessionToken=' + sessionToken,
form: true,
followRedirect: false
}).then(respWithToken => {
cy.setCookie('sameSite','undefined')
const url = respWithToken.redirectedToUrl;
const token = url
.substring(url.indexOf('access_token'))
.split('=')[1]
.split('&')[0];
cy.wrap(token).as('token')
cy.visit(url).then(() => {
cy.visit('/')
});
});
});
})