witty-leather-63295
04/24/2023, 12:54 PMyarn run cypress open
yarn run v1.22.19
warning ..\..\..\package.json: No license field
$ C:\project\node_modules\.bin\cypress open
Couldn't find tsconfig.json. tsconfig-paths will be skipped
[14720:0424/134349.314:ERROR:crashpad_client_win.cc(844)] not connected
error Command failed with exit code 4294930435.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
How can I access more information about the error?little-honey-86788
04/24/2023, 1:19 PMbillions-appointment-73985
04/24/2023, 1:56 PMambitious-monkey-72386
04/24/2023, 6:16 PMhandsome-processor-4914
04/24/2023, 9:36 PMhandsome-wolf-98416
04/25/2023, 5:27 AMnice-hamburger-65093
04/25/2023, 9:09 AM/assets/
throw 404 Not found
, but in e2e and in app works normally.important-diamond-61614
04/25/2023, 12:41 PMechoing-tent-95037
04/25/2023, 3:06 PMfancy-mechanic-10638
04/25/2023, 4:19 PMreadonly #service = inject(MyService)
, how do I mock the service? I'm specifically not talking about mocking an HTTP call.quaint-airplane-96634
04/26/2023, 9:22 AMT!@$^()-_+, &_-=tt.Ø {y}[a] £ fi
Please find attached sample HTML page
Whenever I try to verify the string I get below assertion error in Cypress:
AssertionError:Timed out retrying after 4000ms: Expected to find content: 'T!@$^()-+, &-=tt.Ø {y}[a] £ fi' within the element: <label> but never did.
Below is the code block:
it('Verify Special characters', () => {
cy.visit('public/special-character.html')
cy.get('label').contains('T!@$^()-_+, &_-=tt.Ø {y}[a] £ fi');
cy.get('p').contains('T!@$^()-_+, &_-=tt.Ø {y}[a] £ fi');
})
https://cdn.discordapp.com/attachments/1100713482917265428/1100713483206668348/special-character.htmlworried-hairdresser-56712
04/26/2023, 9:48 AMbusy-football-20916
04/26/2023, 10:35 AMstale-bear-96866
04/26/2023, 12:48 PMlimited-ghost-73949
04/26/2023, 2:16 PMpowerful-toothbrush-36495
04/26/2023, 2:47 PMplain-potato-68806
04/26/2023, 3:03 PMfew-musician-79351
04/27/2023, 1:33 AM/order
), it redirects you to a new page with a generated UUID passed through URL parameters (/order/sl435jhsdfhkj
).
Is it possible?
Thank you.
https://cdn.discordapp.com/attachments/1100957975373422672/1100957975545384970/image.png▾
faint-kangaroo-77725
04/27/2023, 7:04 AMplain-potato-68806
04/27/2023, 8:57 AMhttps://cdn.discordapp.com/attachments/1101069677318381669/1101069677490356295/Screenshot_2023-04-27_at_09.10.59.png▾
wooden-flower-6562
04/27/2023, 9:20 AMchromeWebSecurity: false
and experimentalSessionAndOrigin: true
settings.
The problem using those settings in my case:
If I use chromeWebSecurity
and experimentalSessionAndOrigin
, I have problem with the cart that doesn't keep products in between pages (problem that I have too with Cypress v12.0 because it sets experimentalSessionAndOrigin
by default). The cart is filled with a PHP request, I have to put a missing cookie each time and use cy.visit()
the current URL to get back the cart. But it doesn't work at the end of my workflow where I have to submit form (TOS step) to access page where I can choose the payment option.
That's why I don't know if I should use a different way to make payment without those settings, or if I should try to correct the problem with the cart using settings.
Thanks for your help. I hope I gave you enough information to understand my problem.
Best regards.
Mikaëlbillions-stone-48809
04/27/2023, 9:46 AMsilly-river-29906
04/27/2023, 11:17 AMbumpy-lion-62664
04/27/2023, 2:56 PMconst setup = () => {
cy.window()
.its('e2eFirestore')
.then(
(firestore: FirestoreService) =>
new Cypress.Promise(async (resolve) => {
await firestore.update(id, {
test: 'test'
});
resolve();
})
);
}
it('test', () => {
setup(); // doesn't wait for test data to be written in the db
cy.visit('/');
// it should display test data, but it doesn't, that gets loaded after
})
It seems cypress is not waiting for the Cypress Promise to complete. What is the recommended approach for handling async api functionality? I don't want to visit the route until the data has been stored in the db.
Thank you in advance!kind-quill-98303
04/27/2023, 6:16 PMeager-arm-41438
04/27/2023, 7:51 PMimportant-noon-13871
04/28/2023, 1:46 AMagreeable-lunch-15323
04/28/2023, 9:07 AMts
cy.vist('http://localhost:4200')
and the worst part:
I cannot connect to http://localhost:4200 on a seperate tab in the browser instance that is running cypress.
for an example.
if I choose chrome as the browser, the test will not run, I will get the error
ts
CypressError
cy.visit() failed trying to load:
http://localhost:4200/login
We attempted to make an http request to this URL but the request failed without a response.
We received this error at the network level:
> Error: connect ECONNREFUSED 127.0.0.1:4200
and if on the same browser instance I create a new tab and go to http://localhost:4200, I do not get a response. same thing when I create a new window from that instance.
But if I just open another browser instance that is not created by or from the instance running cypress, I can connect to local host and get the appropriate responses.
Here is a link[https://drive.google.com/file/d/1exDHylkA8283rw2EUmHKEsczLsENzEm4/view?usp=sharing] of a video showing the issue.
I used different browsers to test and same result.best-agent-47831
04/28/2023, 11:15 AM##[error]The operation was canceled.
. The error in the pipeline step tells me the timeout of 60 minutes has passed, therefore it is canceling the job. This is the total timeout for the job.
The spec file had run 5 of 7 tests and then was stuck for some reason. No error message available.
After running this same spec file with Cypress open it seems that the duration counter continues counting even after all tests have passed. However, this doesn't happen all the time, so it is very confusing. Does anyone recognize this issue? Might be two different issues though...wide-eye-45012
04/28/2023, 2:48 PM