dazzling-pillow-26039
10/12/2022, 4:23 PMgreat-london-82425
10/12/2022, 4:56 PMCould not find Cypress test run results
). It used to be fine, if a bit flakey. There have also been times when our suite takes twice the time to load when it does locate the tests automatically so it's becoming a performance issue as well. When there's a flakey test on GitHub Actions, there's no way for us to debug to resolve (whereas CircleCI does let you SSH into a container to figure out what's going on when there is a flakey test).loose-engine-11181
10/12/2022, 7:47 PMYou may not call cy.session() with a previously used name and different options. If you want to specify different options, please use a unique name other than
I don't have different options specified, so I'm assuming that it's complaining about the two setups, which shouldn't be an issue. Does anyone have any experience with this?glamorous-waiter-41005
10/12/2022, 9:24 PMcalm-house-97322
10/12/2022, 10:16 PMabundant-lifeguard-9043
10/13/2022, 9:16 AMquick-painting-17010
10/13/2022, 11:24 AMacceptable-hamburger-48790
10/13/2022, 11:36 AMquick-painting-17010
10/13/2022, 12:07 PMstale-optician-85950
10/13/2022, 12:09 PMcy.origin()
in your code, follow the documentation examples https://docs.cypress.io/api/commands/originquick-painting-17010
10/13/2022, 1:19 PMbright-twilight-10346
10/13/2022, 1:33 PMbright-twilight-10346
10/13/2022, 1:52 PMfresh-doctor-14925
10/13/2022, 1:55 PMbright-twilight-10346
10/13/2022, 2:13 PMbright-twilight-10346
10/13/2022, 2:13 PMbright-eve-71344
10/13/2022, 2:18 PMhttp://localhost:4000/users/login
, {
user: {
email: "USERNAME",
password: "PASSWORD"
}
}).then(({ body }) => {
window.localStorage.setItem('__auth_provider_token__', body.token)
cy.visit('/profile')
cy.get('h1').contains('Account')
})
Doing a basic API login test to programmatically login to my application. The API is going through, but the page in the cy.visit() is not rendering. It's a white blank page. Looking at the screen shots I noticed a few xhr requests getting aborted. I can't figure out why or how. If I run the test locally, my tests all pass and work as expected.stale-optician-85950
10/13/2022, 2:26 PMit
block? Are you able to separate out the test into muliple smaller it
blocks, each with a more specific validation?
2. Your example code comments say that cy.visit('https://mysite.com/item'
doesn't work but you have already visited https://mysite.com
and that does work. But they have the same URL origin. I suggest you try to simplify your code using 2 URLs with different origins and get cy.origin
working there first.worried-tomato-61061
10/13/2022, 3:08 PMquick-painting-17010
10/13/2022, 3:37 PMbig-judge-93427
10/13/2022, 5:23 PMfresh-doctor-14925
10/13/2022, 6:35 PMcy.log()
be helpful for you?big-judge-93427
10/13/2022, 6:43 PMstale-optician-85950
10/13/2022, 6:50 PMbig-judge-93427
10/13/2022, 6:56 PMbig-judge-93427
10/13/2022, 6:57 PMit('Here is some text', () => cy.doAThing())
stale-optician-85950
10/13/2022, 6:57 PMhttps://mysite.com/item
is your baseUrl and you need to visit https://sekondsite.com/
for additional authentication.
I would have expected a test flow like this:
* Login https://mysite.com/item
(as your code is above)
* Validate that the page has fully loaded using cy.request()
* Validate the state of the images that are waiting to load (the process will depend on your app)
* cy.origin()
into https://sekondsite.com/
and authenticate
* Come back to https://mysite.com/item
* Validate that the images have now loaded (the process will depends on your app)stale-optician-85950
10/13/2022, 7:00 PMCypress.Commands.add('customLogging', (name: string) => {
Cypress.log({
consoleProps() {
return {
'step name': name,
};
},
displayName: 'test step',
message: `**${name}**`,
name: 'UI step currenly under test',
});
});
Which I call to make text stand out more in the Cypress (left side) command log. I don't know if will help you, or if you can pimp it up more for your needs.
cy.customLogging('Site Loaded');
big-judge-93427
10/13/2022, 7:01 PMstale-optician-85950
10/13/2022, 7:04 PM