https://cypress.io logo
Join Discord
Powered by
# e2e-testing
  • d

    delightful-alligator-19846

    11/27/2022, 12:52 PM
    Hi
  • d

    delightful-alligator-19846

    11/27/2022, 12:52 PM
    We've migrated our cypress automation project to the latest version 11.2.0 instead of 9.x.x then we can't trigger it using jenkins and got the following error could you please help/advise ?
  • f

    fresh-doctor-14925

    11/27/2022, 12:58 PM
    !duplicate
  • n

    nutritious-analyst-96582

    11/27/2022, 12:58 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! 😀
  • n

    narrow-optician-44716

    11/27/2022, 2:52 PM
    Hi there, I just posted a question in stack overflow so others can benefit from the eventual answer in the future: https://stackoverflow.com/questions/74590971/how-should-someone-test-a-button-that-evokes-showsavefilepicker-using-cypress I'm sharing here to see if anyone knows how one should test a button that evokes
    showSaveFilePicker
    using Cypress. Thanks in advance for your time.
  • g

    gray-kilobyte-89541

    11/27/2022, 6:54 PM
    I doubt that I can help without a reproducible example
  • b

    big-spring-11836

    11/27/2022, 10:47 PM
    Hi Everyone, I am new to cypress, How to add user in browser via cypress?
  • a

    adorable-smartphone-87280

    11/27/2022, 11:00 PM
    Create user in Cypress
  • g

    gray-island-1435

    11/28/2022, 4:02 AM
    I am frequently getting the below error and not able to open Cypress. Request help on this to sort it out
  • a

    adorable-smartphone-87280

    11/28/2022, 4:39 AM
    It looks like the web page running on
    localhost
    was unreachable. Did you start your app before starting your tests?
  • g

    gray-island-1435

    11/28/2022, 4:42 AM
    Thanks for the reply. If you could check the above screenshots, I am executing npx cypress open in order to open the cypress app in machine. Basically I am getting the above error while starting the app
  • a

    adorable-smartphone-87280

    11/28/2022, 4:43 AM
    It looks to me like Cypress is opening. What seems to be failing is the app that Cypress is supposed to test. That's what I would expect to be running on
    localhost
    .
  • a

    adorable-smartphone-87280

    11/28/2022, 4:44 AM
    Also what is going on with your
    test
    script? That doesn't look right.
  • g

    gray-island-1435

    11/28/2022, 4:48 AM
    Since This is the first time I am starting cypress app, I don't write any tests yet. I just installed cypress and verified.. post then I am executing cypress open command and trying to open. Below is the screen pops up and end by network service crashed error
  • a

    adorable-smartphone-87280

    11/28/2022, 4:50 AM
    I would follow a setup guide, make sure you have things like
    baseUrl
    set properly. Maybe try just visiting google.com instead of a `localhost`url?
  • g

    gray-island-1435

    11/28/2022, 4:51 AM
    Ok thanks...will try that
  • g

    gray-island-1435

    11/28/2022, 5:00 AM
    I have tried by updating base url in config.js...but no luck. Still same issue. Do we have any time out related configs needs to added anywhere?
  • a

    adorable-smartphone-87280

    11/28/2022, 5:01 AM
    You can learn about Timeout config here: https://docs.cypress.io/guides/references/configuration#Timeouts
  • f

    fresh-doctor-14925

    11/28/2022, 6:31 AM
    !duplicate
  • n

    nutritious-analyst-96582

    11/28/2022, 6:31 AM
    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! 😀
  • c

    careful-toothbrush-49639

    11/28/2022, 6:35 AM
    Ok...thanks...done @nutritious-analyst-96582 @fresh-doctor-14925
  • h

    happy-dinner-13480

    11/28/2022, 9:02 AM
    In our app we have a lot of pickers, the select options in the pickers have a
    data-cy="someId
    attribute based on a value coming from the back-end. We're now having a few issues with translations (database values have changed) and we're considering to changing how cypress selects an option. We're considering to get a list of options, and then randomly select one (if no specific data-cy value is used), this way we don't have to worry about translations and changing names etc. any suggestions?
  • g

    gray-kilobyte-89541

    11/28/2022, 12:32 PM
    search https://cypress.tips/search for "random element"
  • h

    happy-dinner-13480

    11/28/2022, 12:34 PM
    the implementation won't be an issue 🙂 i was just wondering if/how other Cypress users have solved this "issue"
  • c

    cold-bird-96191

    11/28/2022, 12:39 PM
    Hello. When I run the test, the project does not open in full screen. When I open it manually in a new tab, it is full screen.
  • f

    fresh-doctor-14925

    11/28/2022, 12:42 PM
    Looks like your app doesn't resize to fit the screen. You'll need to configure your
    viewportWidth
    and
    viewportHeight
  • c

    cold-bird-96191

    11/28/2022, 12:45 PM
    These parameters are written, the application adapts to the screen size(
  • c

    cold-bird-96191

    11/28/2022, 12:47 PM
    i try to change value of viewportWidth and viewportHeight, but it doesn`t help
  • f

    fresh-doctor-14925

    11/28/2022, 12:50 PM
    It should. i can see that your 'full screen' screenshot is much wider than your viewport in cypress. Have you tried setting your viewport to match your screen's resolution
  • v

    victorious-summer-2999

    11/28/2022, 3:57 PM
    is someone using cypress grep? @billions-barista-30103/grep not the older cypress-grep plugin ? I can't seem to be able to make it working right: package.json
    Copy code
    "devDependencies": {
        "@cypress/grep": "3.1.0",
    cypress.config.ts
    Copy code
    export default defineConfig({
      ...
      e2e: {
        ...
        setupNodeEvents(on, config) {
          const pluginFile = require('../../plugins/index.ts');
          require('cypress-grep/src/plugin')(config);
          pluginFile(on, config);
          return config;
        },
      },
    });
    plugins/index.ts
    Copy code
    const registerCypressGrep = require('cypress-grep');
    
    module.exports = (on, config) => {
      // we register our plugin using its register method:
      registerCypressGrep();
1...154155156...192Latest