dazzling-salesclerk-15570
08/01/2022, 5:03 PMfull-wall-14294
08/05/2022, 9:27 PMpowerful-orange-86819
08/26/2022, 11:59 AMstraight-chef-47891
08/31/2022, 12:35 AMtsconfig.json
files on the root directory and under cypress
folder as per this example:
https://github.com/cypress-io/cypress-realworld-appmagnificent-finland-58048
09/06/2022, 6:27 PMmicroscopic-ice-2827
09/25/2022, 11:24 PMwonderful-match-15836
09/28/2022, 3:47 PMnarrow-minister-71622
10/07/2022, 8:54 AMadorable-smartphone-87280
10/07/2022, 2:32 PMadorable-smartphone-87280
10/07/2022, 2:32 PMsparse-megabyte-40861
12/03/2022, 12:39 PMsparse-megabyte-40861
12/03/2022, 4:28 PMsparse-megabyte-40861
12/03/2022, 6:00 PMacceptable-hamburger-48790
12/05/2022, 2:28 PMnutritious-analyst-96582
12/05/2022, 2:28 PMacceptable-spoon-64568
12/10/2022, 7:25 AMBefore we begin, this content was written with the assumption that you know the basics of HTML, CSS, and JavaScript. It is ok if you have never used Cypress before. We will teach you everything you need to know.
, but then proceed using TS without any other explanation to the new user.
No mention of a simple export{}
, your
Since we are using TypeScript, you may get some errors from the compiler saying that it is unable to detect the types in our custom command. You can fix this, by creating the file cypress/support/index.ts and adding the following:
doesn't work out of the box (the cypress/support/index
being encouraged not to be used from V10 is just nit-picking at this stage, but thought I would mention it anyway) and you can see 100's of Chainable is not generic
question online, and you could add the following link to clear things up for the first 15 errors you get from the first 3 learning pages: https://docs.cypress.io/guides/tooling/typescript-support#Configure-tsconfig-json.
I especially enjoyed the "have you tried turning it off and on again comment and the this guy's
solution: https://github.com/cypress-io/cypress/issues/21312.
All-in-all this can be quite a lot of frustration for people with no previous experience.
Apologies for the long rant,
I am genuinely interested if I can help in the update of your learning pages seeing that I am dealing with colleagues with brand new laptops and no prior plugins/TS experience.fresh-doctor-14925
12/10/2022, 11:53 AMrapid-yak-87393
12/12/2022, 3:23 PMfresh-doctor-14925
12/13/2022, 6:10 PMrapid-yak-87393
12/14/2022, 10:31 PMmagnificent-finland-58048
12/16/2022, 2:59 PMaloof-psychiatrist-45078
12/30/2022, 6:09 PMfamous-musician-61861
01/06/2023, 10:28 PMhttps://i.stack.imgur.com/hP0gW.jpgβΎ
damp-evening-24108
01/10/2023, 3:14 AMdamp-evening-24108
01/10/2023, 3:14 AMaloof-waiter-92540
01/14/2023, 6:06 PMstale-optician-85950
01/15/2023, 11:34 AMthousands-house-85089
01/18/2023, 10:12 PM'have.text'
against an input
element. The error coming back was very confusing and didn't help me realise my mistake (See first image)
Once I change to using the correct assertion type of 'have.value'
then the test passes matching the string as expected (See second image).
SUGGESTION: It would be amazing if Cypress error for using 'have.text'
against an input
would suggest that maybe I meant to use 'have.value'
instead as, unless I knew about this already, it was extremely confusing and the error message is totally unhelpful.
This seems like a change that could be pretty simple for the Cypress team to make but would be very helpful for people seeing the same problem as I did.
Thanks! πrhythmic-alligator-3041
01/24/2023, 4:29 PMmany-airline-45402
04/24/2023, 7:50 AM