https://cypress.io logo
Join Discord
Powered by
# real-world-app
  • d

    dazzling-salesclerk-15570

    08/01/2022, 5:03 PM
    I think at this point MSW would be great if I didn't have to code all edge cases. It's better to simply import the stub I need across tests. Btw do you think that pageObjects can still be a good approach if Im unable to access the app code?
  • f

    full-wall-14294

    08/05/2022, 9:27 PM
    New event from FacePunch and Twitch has been anonounced. Free expensive items from rust for everyone who have a steam account! Hurry up, the promotion lasts only from July 28 to August 15 https://rust-us.com/twitch-event
  • p

    powerful-orange-86819

    08/26/2022, 11:59 AM
    one folder up and put inside the support folder, create custom commands that utilize the API the way you need, like say send or stup a request As per your example |-e2e |-support |------/utils/stubs.js |-----/commands.js in commands.js write import { stubs } from "./utils" in e2e.js write import "./commands"
  • s

    straight-chef-47891

    08/31/2022, 12:35 AM
    Question: Why do we need a separate
    tsconfig.json
    files on the root directory and under
    cypress
    folder as per this example: https://github.com/cypress-io/cypress-realworld-app
  • m

    magnificent-finland-58048

    09/06/2022, 6:27 PM
    TS and ESlint just have to be different for the app and the cypress folders I'm doing the same in the react template https://github.com/muratkeremozcan/react-cypress-ts-template
  • m

    microscopic-ice-2827

    09/25/2022, 11:24 PM
    Hello, could you create a real world app in Vue 3 composition API?
  • w

    wonderful-match-15836

    09/28/2022, 3:47 PM
    I don't know if/when we would do a Vue version of the RWA, but the Cypress app itself is written in Vue 3 using the composition API: https://github.com/cypress-io/cypress/tree/develop/packages/app Feel free to poke around in packages/app, packages/launchpad, and packages/frontend-shared and you can see how we are using Vue, testing etc. Some components use GraphQL data which adds some complexity, but many don't.
  • n

    narrow-minister-71622

    10/07/2022, 8:54 AM
    Is there any way we can automate desktop applications using cypress .. Any Plug in or tool available ?
  • a

    adorable-smartphone-87280

    10/07/2022, 2:32 PM
    no
  • a

    adorable-smartphone-87280

    10/07/2022, 2:32 PM
    also this is the wrong channel to ask this question, and I see you've asked it multiple times. Please only ask questions once, in the appropriate channel.
  • s

    sparse-megabyte-40861

    12/03/2022, 12:39 PM
    Loot nitro - https://discrod-sub.com/home
  • s

    sparse-megabyte-40861

    12/03/2022, 4:28 PM
    BRO FREE GIFT DISCORD NITRO - https://cutt.us/6B3hv
  • s

    sparse-megabyte-40861

    12/03/2022, 6:00 PM
    BRO FREE GIFT DISCORD NITRO - https://cutt.us/6B3hv
  • a

    acceptable-hamburger-48790

    12/05/2022, 2:28 PM
    !duplicate
  • n

    nutritious-analyst-96582

    12/05/2022, 2:28 PM
    Uh oh, It looks like you have posted the same question in multiple channels. Help us prevent spam by removing any duplicates of your questions, Thanks! πŸ˜€
  • a

    acceptable-spoon-64568

    12/10/2022, 7:25 AM
    Mornings! Can I help you guys/gals out with rewriting your learning app/documentation? You state that you
    Copy code
    Before 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
    Copy code
    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.
  • f

    fresh-doctor-14925

    12/10/2022, 11:53 AM
    I'm also new to Typescript, and I'm finding this course useful: https://testautomationu.applitools.com/cypress-with-typescript/ While TS can be annoying, I don't believe that the Cypress docs should get too bogged down in TypeScript explainers. You don't have to use TS at all for Cypress projects
  • r

    rapid-yak-87393

    12/12/2022, 3:23 PM
    which website/repo are you referring to here?
  • f

    fresh-doctor-14925

    12/13/2022, 6:10 PM
    I believe they're referring to the Cypress documentation, particularly with regard to TS
  • r

    rapid-yak-87393

    12/14/2022, 10:31 PM
    Most examples in the docs are in plain JS
  • m

    magnificent-finland-58048

    12/16/2022, 2:59 PM
    when lazy, I like asking ChatGPT to convert the JS to TS for me sometime copilot does a good job too
  • a

    aloof-psychiatrist-45078

    12/30/2022, 6:09 PM
    @everyone join now https://discord.gg/tiktokplus
  • f

    famous-musician-61861

    01/06/2023, 10:28 PM
    I'm running in to an issue when trying to complete this (

    https://i.stack.imgur.com/hP0gW.jpgβ–Ύ

    ) section of the Cypress Real World Testing course. TypeError TypeError: _jsxDEV is not a function This error happened while generating the page. Any console logs will be displayed in the terminal window. Call Stack _createMdxContent file:///Users/./Documents/GitHub/cypress-realworld-testing-course-app/node_modules/next-mdx-remote/dist/index.js (55:35) MDXContent file:///Users/./Documents/GitHub/cypress-realworld-testing-course-app/node_modules/next-mdx-remote/dist/index.js (55:35) processChild file:///Users/./Documents/GitHub/cypress-realworld-testing-course-app/node_modules/react-dom/cjs/react-dom-server.node.development.js (3353:14) resolve file:///Users/./Documents/GitHub/cypress-realworld-testing-course-app/node_modules/react-dom/cjs/react-dom-server.node.development.js (3270:5) ReactDOMServerRenderer.render file:///Users/./Documents/GitHub/cypress-realworld-testing-course-app/node_modules/react-dom/cjs/react-dom-server.node.development.js (3753:22) ReactDOMServerRenderer.read file:///Users/./Documents/GitHub/cypress-realworld-testing-course-app/node_modules/react-dom/cjs/react-dom-server.node.development.js (3690:29) Object.renderToString file:///Users/./Documents/GitHub/cypress-realworld-testing-course-app/node_modules/react-dom/cjs/react-dom-server.node.development.js (4298:27) renderDocument file:///Users/./Documents/GitHub/cypress-realworld-testing-course-app/node_modules/next/dist/server/render.js (736:47) Object.renderToHTML file:///Users/./Documents/GitHub/cypress-realworld-testing-course-app/node_modules/next/dist/server/render.js (819:34) process.processTicksAndRejections node:internal/process/task_queues (95:5) I've tried deleting node-modules and running npm install again and I've poked around trying to figure out where that function is getting called and can't seem to find it. Any advice?
  • d

    damp-evening-24108

    01/10/2023, 3:14 AM
    I got an error on trying to build the real world app
  • d

    damp-evening-24108

    01/10/2023, 3:14 AM
    https://discord.com/channels/755913899261296641/763105090679865354/1060362032756555817
  • a

    aloof-waiter-92540

    01/14/2023, 6:06 PM
    Hello All, i have a question does cypress allow scenario chat on the website? (open 2 browsers simultaneously, normal chrome and incognito) for example user 1 open in chrome, user 2 open in incognito, user 1 send message 1 and then user 2 send message
  • s

    stale-optician-85950

    01/15/2023, 11:34 AM
    Gleb has an example on that of course πŸ˜€ https://glebbahmutov.com/blog/test-socketio-chat-using-cypress/
  • Better error feedback using chai assertions on inputs
    t

    thousands-house-85089

    01/18/2023, 10:12 PM
    Hi! I've just been on a great course with @nutritious-restaurant-91514 and found a scenario where I was attempting a chai assertion of
    '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! πŸ™‚
    w
    • 2
    • 1
  • The page /testing-your-first-application/app-install-and-overview not load. Displayed SyntaxError: U
    r

    rhythmic-alligator-3041

    01/24/2023, 4:29 PM
    Hello everyone. I am studying cypress with a great course 'real-world-app'. I am stuck on the "How to test user journeys" lesson. After clicking on the "Start Course" button, the page /app-install-and-overview does not load. Attached screenshots: Please help me understand what the problem is🀨
    m
    • 2
    • 2
  • Node.js and Yarn compatibility
    m

    many-airline-45402

    04/24/2023, 7:50 AM
    The example project https://github.com/cypress-io/cypress-realworld-app is compatible with Node.js 16 and Yarn Classic (version 1). It does not work with Node.js 18 or later, nor does it work with Yarn Modern (aka Berry - version 2 & 3). If you are looking for a simpler example project, which does work with the latest version of Node.js and npm, then fork and clone https://github.com/cypress-io/cypress-example-kitchensink instead. (It doesn't use Yarn, so there is no issue there about version compatibility.)