Docs: https://docs.cypress.io | Issues: https://github.com/cypress-io/cypress/issues
panzarino on issue-14658
I didn't like that spacing (compare)
panzarino on issue-14658
Set up basics for isolated runn… Update a ton of studio tests (compare)
~/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('/')
});
});
});
})
Timed out retrying: expected '<span.ng-value-label>' to be 'visible' This element `<span.ng-value-label>` is not visible because it has CSS property: `position: fixed` and it's being covered by another element: `<div class="ng-input">...</div>`