prehistoric-restaurant-72560
10/27/2022, 10:32 AMgray-kilobyte-89541
10/27/2022, 10:36 AMlittle-quill-7630
10/27/2022, 10:40 AMlittle-quill-7630
10/27/2022, 10:41 AMcy.wrap(...).should(....)
to do our asserts.. (Don't blame me, my managers decision)little-quill-7630
10/27/2022, 10:41 AMlittle-quill-7630
10/27/2022, 10:43 AMcy.wrap().should()
stuff?little-quill-7630
10/27/2022, 10:46 AMts
it('should correctly parse sort order when loading existing aqs', () => {
cy.intercept('api/aqs/join*').as('aqsJoinIntercept');
openDataExplorer(); // Gets to correct place in UI
loadSavedQuery(); // Searches for existing aqs and initalises the aqs join ajax request to the api and then ensures the search dialog has been removed.
cy.wait('@aqsJoinIntercept').its('request.body.aqs.properties.sortInfo.sortOrder').should('equal', 'Descending');
});
Not sure if that is a more official way of doing it or not? Since it waits until after the response has returned.miniature-doctor-74028
10/27/2022, 11:48 AMfresh-doctor-14925
10/27/2022, 11:55 AMmysterious-motherboard-13344
10/27/2022, 1:12 PMcy.screenshot()
timed out waiting 30000ms
to complete.`gray-kilobyte-89541
10/27/2022, 1:29 PMstale-optician-85950
10/27/2022, 1:35 PMjolly-toddler-60878
10/27/2022, 2:02 PMstderr: node:internal/modules/cjs/loader:959
throw err;
^
Error: Cannot find module '"/Users/kenwilde/Library/Caches/Cypress/10.11.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/register_ts_node.js"'
The issue here is that the path to this module is enclosed in 2 sets of quotes, a string within a string.
After rolling back every version from 10.11.0 -> 10.3.0 to see which release introduced this local breaking change, I noticed in 10.3.0, there was this change introduced to address a windows issue with path resolution:
https://github.com/cypress-io/cypress/pull/22550/files#diff-b0bd90502ad464c0d541a0e47822d15fec9ba5434dc4225d2993305e1ec7d30a
packages/data-context/src/data/ProjectConfigIpc.ts
- L:295.
These double quotes are injected and the loader cannot find the module.
To see if this was the issue, I removed these double quotes and my tests ran fine.
I'm not sure if this is a bug, as it hasn't been brought up in Issues since the release in late June. So perhaps there's something I can do locally or any suggestions, maybe it is a bug and I'd be happy to open an Issue so its documented.
Just a bit about my environment, let me know if there's more information I can provide:
Cypress Version: 10.3.0
Node: 16.17.1
CommonJS
OS: Mac OS Monterrey
Test is an E2E test running in Chrome.fresh-doctor-14925
10/27/2022, 2:03 PMjolly-toddler-60878
10/27/2022, 2:05 PMwitty-planet-12434
10/27/2022, 6:48 PMcy.intercept()
isn't intercepting WS requests...can anyone please help? how can we intercept WS requests in cypress.stale-optician-85950
10/27/2022, 7:05 PMfreezing-hydrogen-55479
10/27/2022, 10:17 PMlemon-animal-16490
10/28/2022, 4:49 AMhappy-megabyte-98400
10/28/2022, 5:27 AMcy.wait()
however many time we wanna wait but the no. of requests is dynamic.agreeable-doctor-59104
10/28/2022, 6:24 AMstale-optician-85950
10/28/2022, 7:38 AMcy.origin()
https://docs.cypress.io/api/commands/origin to allow cross-domain testing.brainy-ability-43194
10/28/2022, 8:10 AMflaky-horse-36126
10/28/2022, 8:24 AMagreeable-doctor-59104
10/28/2022, 8:26 AMstale-optician-85950
10/28/2022, 8:44 AMcy.origin()
has received bug fixes in v10.9.0, v10.10.0 and v10.11.0flaky-horse-36126
10/28/2022, 8:47 AMpolite-alarm-78904
10/28/2022, 8:51 AMhttps://mysite
, but in CI they are being sent to /mysite
Since no requests are being intercepted correctly the tests fail. How can I change the request URL in CI to be the same as locally?stale-optician-85950
10/28/2022, 8:56 AMpolite-alarm-78904
10/28/2022, 8:57 AM