polite-painting-51763
07/21/2022, 1:50 PMfamous-restaurant-30435
07/21/2022, 1:51 PMfamous-restaurant-30435
07/21/2022, 1:51 PMpolite-painting-51763
07/21/2022, 1:52 PMstale-optician-85950
07/21/2022, 2:12 PMcy.origin()
I get the error `cy.dataSelector is not a function`:
it(`Component title - "${platform}"`, () => {
cy.origin('https://www.mycompany.co.uk', () => {
cy.visit('/');
cy.dataSelector('uol-c-media-banner-title').should('be.visible');
});
Is there really a restriction on using our custom commands inside cy.origin()
and if yes why would that be?stale-optician-85950
07/21/2022, 2:20 PMbulky-manchester-97357
07/21/2022, 9:59 PMbulky-manchester-97357
07/21/2022, 9:59 PMgray-kilobyte-89541
07/21/2022, 10:58 PMrough-van-84956
07/22/2022, 1:22 AMcypress/included:10.3.1
on DockerHub?famous-restaurant-30435
07/22/2022, 2:18 AMpolite-painting-51763
07/22/2022, 4:11 AMmysterious-motherboard-13344
07/22/2022, 7:14 AMstale-park-86404
07/22/2022, 7:58 AMimportant-fireman-17295
07/22/2022, 8:19 AMchromeWebSecurity: false
does not have an effect on Firefox.
Disabling the web security is required for me to use this custom command:
> Cypress.Commands.add('forceVisit', url => {
> cy.window().then(win => {
> return win.open(url, '_self');
> });
> });
I'm trying out forceVisit
to visit multiple domains in a single test.
(Reference: https://medium.com/@lasithdilshan20/cypress-force-visit-to-a-different-origin-321c2c356702)stale-park-86404
07/22/2022, 8:35 AMswift-kitchen-62493
07/22/2022, 8:36 AMnutritious-honey-65632
07/22/2022, 8:49 AMloud-accountant-33201
07/22/2022, 9:42 AMpolite-alarm-78904
07/22/2022, 9:57 AMYou are attempting to use Cypress with an older config file: cypress.json
When you upgraded to Cypress v10.0 the config file was updated and moved to a new location: cypress.config.js
You may need to update any CLI scripts to ensure that they are referring the new version. This would typically look something like:
"cypress open --config-file=cypress.config.js"
https://on.cypress.io/migration-guide
Test run failed, code 1
More information might be available above
Cypress module has returned the following error message:
Could not find Cypress test run results
Error: Could not find Cypress test run results
##[debug]Node Action run completed with exit code 1
##[debug]CI='1'
##[debug]CYPRESS_CACHE_FOLDER='/home/runner/.cache/Cypress'
##[debug]npm_config_cache='/home/runner/.npm'
##[debug]CYPRESS_CACHE_FOLDER='/home/runner/.cache/Cypress'
##[debug]CYPRESS_CACHE_FOLDER='/home/runner/.cache/Cypress'
##[debug]TERM='xterm'
##[debug]Finishing: Cypress run
polite-alarm-78904
07/22/2022, 9:59 AMnutritious-honey-65632
07/22/2022, 10:02 AMloud-accountant-33201
07/22/2022, 12:01 PMcypress.config.ts
file instead of the previous json file which caused my tsconfig file to have clashes between jest and cypress types - https://stackoverflow.com/questions/68584932/cypress-clashing-types-with-jestswift-kitchen-62493
07/22/2022, 12:30 PMacceptable-hamburger-48790
07/22/2022, 12:35 PMcuddly-thailand-33926
07/22/2022, 1:55 PMcrooked-megabyte-18846
07/22/2022, 2:00 PMcareful-insurance-62240
07/22/2022, 2:16 PMcareful-insurance-62240
07/22/2022, 2:17 PMbulky-manchester-97357
07/22/2022, 2:34 PM