ripe-plastic-20004
08/17/2021, 9:54 PMuser
08/18/2021, 7:59 PMexistingSession.setup is not a function
flaky-island-64947
08/20/2021, 7:18 AMfew-answer-74133
08/22/2021, 4:40 AMfew-answer-74133
08/22/2021, 4:41 AMfew-answer-74133
08/22/2021, 6:17 AMfancy-toddler-26933
08/24/2021, 8:09 AMhelpful-xylophone-24704
08/24/2021, 8:24 AMhelpful-xylophone-24704
08/24/2021, 8:24 AMloud-policeman-30507
08/24/2021, 5:14 PMfancy-toddler-26933
08/24/2021, 11:48 PMfancy-toddler-26933
08/26/2021, 3:17 AMfancy-toddler-26933
08/26/2021, 3:18 AMfancy-toddler-26933
08/26/2021, 3:18 AMuser
08/26/2021, 8:21 PMuser
08/26/2021, 8:21 PMuser
08/26/2021, 8:22 PMcuddly-winter-72122
08/26/2021, 8:27 PMstatusCode
property, not status
cuddly-winter-72122
08/26/2021, 8:27 PMuser
08/26/2021, 11:46 PMresponse.statusCode
it workedglamorous-byte-70077
08/30/2021, 4:13 AMclean-father-86225
08/31/2021, 5:03 PMTypeError Cannot set property name of which has only a getter
:/
"blockHosts": [
"*google-analytics.com",
"*googletagmanager.com",
"*tagmanager.google.com",
"*googleoptimize.com",
"*googleadservices.com",
"*doubleclick.net",
"*doubleclick.com",
"*facebook.net",
"*facebook.com",
"*hotjar.com",
"*clarity.ms",
"*ads.linkedin.com",
"*bat.bing.com"
]
Interestingly enough, when I click around within the tested page, that weird thing disappears: https://share.vidyard.com/watch/cNt4pwn4EYff6sA4UHBcJ2?
Do you have any hint what I might try next or what the culprit might be? You can see the equivalent testing page at https://staging.clearago.de/...
(PS: I also posted this in the cypress gitter chat because I didn't really understand if they have different purposes or not – if redundant plz delete, cheers)clean-father-86225
09/01/2021, 10:00 AMfamous-application-51504
09/02/2021, 10:42 PMcypress open-ct
working on a remote container like that?famous-application-51504
09/02/2021, 11:29 PMcypress open-ct
locally and remotely, and then when the browser instance opens I can change the address in the address bar to point to the webpack devserver on my remote instance and it seems to run fine. But that means that I need to run the webpack devserver locally to connect to the one remotely which isn't ideal. I can't figure out how to tell it to just create a browser instance and connect to the remote webpack devserver without starting up one locallyuser
09/03/2021, 5:14 PMbillowy-spoon-30011
09/03/2021, 7:01 PMuser
09/03/2021, 7:15 PMuser
09/03/2021, 7:15 PMuser
09/07/2021, 7:50 AM// using node-msal for azure
Cypress.Commands.add('authenticate', (role) => {
// TODO: ignore role for now
const usernamePasswordRequest = {
scopes: ["user.read"],
username: 'foo@bar.com',
password: 'f00'
};
return new Cypress.Promise((resolve, reject) => {
// Returns a promise
return pca.acquireTokenByUsernamePassword(usernamePasswordRequest).then(() => {
// at this point pca has token and we resolve the getKVStore
resolve(pca.getTokenCache().getKVStore());
}).catch(err => {
reject(err);
});
});
});
Cypress.Commands.add('login', (role = 'ADMIN') => {
// If I comment out cy.session, it works
cy.session(['login', role], () => {
cy.authenticate(role).then(token => {
const cacheKeys = Object.keys(token);
cy.window().then(win => {
for (let key of cacheKeys) {
win(key, JSON.stringify(token[key]));
}
})
})
});
});
In my beforeEach hook I call cy.login('ADMIN') and then cy.visit('/some') and in my test window.sessionStorage is empty and hence I am redirected to login page.