https://cypress.io logo
Join Discord
Powered by
# general-chat
  • l

    limited-keyboard-75773

    10/04/2021, 1:43 AM
    @User thanks for sharing this!
  • c

    cold-nail-44506

    10/04/2021, 3:43 PM
    Hello, I am testing a react app in Cypress and when I navigate to a page that is supposed to display a PDF document, I get this error "Failed to load PDF file" . I only get that error when I navigate to that page inside Cypress. Outside Cypress, my app works just fine and the PDF files are rendered with no issue. Does anyone have an idea on how to solve this?
  • b

    bulky-sundown-74498

    10/05/2021, 12:14 AM
    @User we are precising this vocable as part of the release of component testing. the confusing directories names are getting a review as well
  • b

    bulky-sundown-74498

    10/05/2021, 12:14 AM
    Short answer is we did not chnage those yet
  • b

    bulky-sundown-74498

    10/05/2021, 12:15 AM
    But a cypress classic test (without component testing) could be an integration test when all the APIs are mocked
  • b

    bulky-sundown-74498

    10/05/2021, 12:15 AM
    Hence the name...
  • u

    user

    10/05/2021, 2:37 AM
    Thanks for the explanation, that all makes sense to me. glad to see it's being considered
  • a

    adventurous-country-21192

    10/05/2021, 8:34 AM
    Hmm I wonder why this happens. I intended to click the slider handle and move it to the right. But the position has an offset.
  • a

    adventurous-country-21192

    10/05/2021, 8:34 AM
    Its a webcomponent and i use shadow(). Any issues know around that?
  • a

    adventurous-country-21192

    10/05/2021, 8:35 AM
    As you see here thats the "right" position
  • i

    important-river-75795

    10/05/2021, 8:35 AM
    Could it be that because you click on the center, and then move from that point to the last x coord of the element?
  • a

    adventurous-country-21192

    10/05/2021, 8:36 AM
    but center is not really the center.
  • i

    important-river-75795

    10/05/2021, 8:38 AM
    Am I missing something, looks like it is not even interacting with the input.slider
  • i

    important-river-75795

    10/05/2021, 8:39 AM
    Or that slider has got attribute name=crispyness?
  • a

    adventurous-country-21192

    10/05/2021, 8:39 AM
    it has
  • a

    adventurous-country-21192

    10/05/2021, 8:39 AM
    see the log on the right
  • a

    adventurous-country-21192

    10/05/2021, 8:45 AM
    ah yeah it should at least move it right?
  • a

    adventurous-country-21192

    10/05/2021, 8:46 AM
    is there a problem triggering events in a shadow dom?
  • i

    important-river-75795

    10/05/2021, 8:47 AM
    Haven't had the need to use use cy.shadow() , so can't be much of a help 😦
  • a

    adventurous-country-21192

    10/05/2021, 8:47 AM
    Yeah but thanks for trying 🙂
  • a

    adventurous-country-21192

    10/05/2021, 8:47 AM
    Im also using it for the first time
  • i

    important-river-75795

    10/05/2021, 8:48 AM
    I know that some time ago mouse events didn't really work unless the clientX and clientY was set, you might try that
  • i

    important-river-75795

    10/05/2021, 8:53 AM
    https://github.com/cypress-io/cypress/issues/845
  • a

    adventurous-country-21192

    10/05/2021, 8:53 AM
    yeah but as i do it for an example I would like to try to prevent it 🙂
  • i

    important-river-75795

    10/05/2021, 8:53 AM
    Best of luck, if you find a solution , drop it here 😄
  • a

    adventurous-country-21192

    10/05/2021, 8:54 AM
    thanks
  • f

    fast-action-74989

    10/05/2021, 2:37 PM
    Hi @everyone, there is a way to create an external database to interact with cypress. I'll explain my case studies better: I have these data, username and password and other types of data that now I have put them as constants inside the code, making them intervene in the test with cy.type
  • f

    fast-action-74989

    10/05/2021, 2:37 PM
    I no longer want to have constants inside the code, but take the data I entered in the constants and put them in the database and go and call them somehow with cypress
  • f

    fast-action-74989

    10/06/2021, 7:58 AM
    @everyone ??
  • g

    gray-kilobyte-89541

    10/06/2021, 2:53 PM
    I think your question is very ambiguous. do you want to save data from the app into the database? Do you want to load a fixture? Do you want to put the user in Cypress.env?
1...181920...127Latest