https://cypress.io logo
Join Discord
Powered by
# help
  • m

    mysterious-belgium-25713

    10/06/2022, 11:07 AM
    Yeah but since you dont have any conditional step this will alwasy fail because you cannot click something that is not there
  • m

    mysterious-belgium-25713

    10/06/2022, 11:09 AM
    Your step does not reach the cy.get("input[placeholder="Search…")
  • n

    narrow-artist-87113

    10/06/2022, 11:35 AM
    So, what do you think should I do? Please give advice
  • n

    narrow-artist-87113

    10/06/2022, 11:54 AM
    Actually, it is running fine in my system but @ last placeholder is creating issue
  • c

    calm-petabyte-36221

    10/06/2022, 12:06 PM
    Hi team, Sorry, I don't know if it's the right channel to ask. I'm trying to use Cypress version 10.9.0 in react component tests I have this scafolding structure: ├── cypress.config.js ├── src │   ├── cypress │      ├── component │      │   └── Home.cy.js │      ├── fixtures │      │   └── example.json │      └── support │      ├── commands.js │      ├── component-index.html │      └── component.js └── webpack.config.js When I try to run my tests, I get this error: Failed to fetch dynamically imported module: http://localhost:8080/full-path/src/cypress/support/component.js the full file path "full-path/src/cypress/support/component.js" exists in my machine ("ls" command returns it correctly). Did I miss something in my configuration or do you have an idea why I get this errors? Thank you for you help
  • l

    limited-room-30929

    10/06/2022, 12:46 PM
    I'm trying to use cypress component testing with webpack and vue. When I place a breakpoint within a components setup function I cannot find any reference to the vue module at all
  • l

    limited-room-30929

    10/06/2022, 12:47 PM
    how does the cypress.config.js look like
  • c

    calm-petabyte-36221

    10/06/2022, 12:48 PM
    const { defineConfig } = require('cypress'); module.exports = defineConfig({ component: { devServer: { framework: 'react', bundler: 'webpack', }, }, });
  • l

    limited-room-30929

    10/06/2022, 12:49 PM
    maybe try this
    Copy code
    ts
    component: {
        supportFile: 'src/cypress/support/component.ts',
        devServer: {
          framework: 'react',
          bundler: 'webpack'
        },
        indexHtmlFile: 'src/cypress/support/component-index.html',
      },
  • c

    calm-petabyte-36221

    10/06/2022, 12:54 PM
    Thank you for the anwser. I tried with your suggestion, I get the same error as before
  • c

    calm-petabyte-36221

    10/06/2022, 12:55 PM
    Do you have any other idea?
  • l

    limited-room-30929

    10/06/2022, 12:56 PM
    maybe not using src but test as folder
  • c

    calm-petabyte-36221

    10/06/2022, 12:56 PM
    You mean, I have to put cypress files in a test/ folder instead of src/?
  • l

    limited-room-30929

    10/06/2022, 12:57 PM
    that is usually the folder it is expected to be in
  • c

    calm-petabyte-36221

    10/06/2022, 1:00 PM
    I tried with the autogenerated component test too, but it didn't work for me. To be honest, I don't understand why I get this error 😕
  • l

    limited-room-30929

    10/06/2022, 1:01 PM
    yes, error messages can be most confusing and also unrelated to the actual problem
  • c

    calm-petabyte-36221

    10/06/2022, 1:02 PM
    I tried with the debug mode DEBUG=cypress:* and it didn't help me more
  • c

    calm-petabyte-36221

    10/06/2022, 1:03 PM
    Is there any example that I can flow to get it working please?
  • l

    limited-room-30929

    10/06/2022, 1:04 PM
    what is in the component-index.html?
  • c

    calm-petabyte-36221

    10/06/2022, 1:04 PM
    Components App
  • l

    limited-room-30929

    10/06/2022, 1:05 PM
    https://docs.cypress.io/guides/component-testing/quickstart-react#Creating-a-Component this is the only one I know
  • l

    limited-room-30929

    10/06/2022, 1:05 PM
    I don't see anything imported there at all
  • l

    limited-room-30929

    10/06/2022, 1:06 PM
    https://docs.cypress.io/guides/component-testing/component-framework-configuration#React-with-Webpack
  • l

    limited-room-30929

    10/06/2022, 1:06 PM
    and don't ask me where injectCustomConfig or baseconfig comes from
  • l

    limited-room-30929

    10/06/2022, 1:07 PM
    there is no explanation for any of that
  • c

    calm-petabyte-36221

    10/06/2022, 1:08 PM
    Ok thank you, I will read it and give a try
  • c

    calm-petabyte-36221

    10/06/2022, 1:08 PM
    thank you for your help
  • f

    future-jelly-92886

    10/06/2022, 1:36 PM
    Hello, Can any body tell me how we can configure PostgreSQL (with Kerberos authentication) in cypress ?
  • m

    mysterious-belgium-25713

    10/06/2022, 2:01 PM
    I have a sample on how i connect to normal postgres. Its not using Kerberos. https://discord.com/channels/755913899261296641/1021507971861200918/1021780811680321648
  • f

    flat-dentist-98143

    10/06/2022, 2:12 PM
    I am facing error on executing cypress exe when i execute scripts in cypress below error in shown
1...164165166...252Latest