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

    bitter-fountain-36713

    12/02/2022, 4:41 PM
    When the page loads yeah One is
  • t

    thousands-gpu-36872

    12/02/2022, 4:45 PM
    Hello Guys ! When I run my specs from all files buttom on cypress, the hooks like before and beforeeach are runnig at the same time. Is this a bug or the hooks are synchronous even with all specs runnig in separated files ?
  • h

    happy-megabyte-98400

    12/02/2022, 5:01 PM
    Hello, is it possible to turn on/off a plugin with a flag? and, does cypress v10 support having multiple config files?
  • g

    gray-kilobyte-89541

    12/02/2022, 8:35 PM
    i am sure it does, but without seeing any code, I cannot say why you are not seeing what you expect
  • g

    gray-kilobyte-89541

    12/02/2022, 8:35 PM
    Huzza, someone discovers again why Cypress removed "run all button" in V10
  • g

    gray-kilobyte-89541

    12/02/2022, 8:36 PM
    you can pass the config filename from the command line
  • b

    bumpy-insurance-8581

    12/02/2022, 8:39 PM
    I understand, i found a solution by setting a specific ID instead of going on a lot of find (my project use shadow and it’s horrible to code good path)
  • d

    dry-scooter-25612

    12/02/2022, 9:07 PM
    I have an invoice modal window, which has N number of items including Invoice total, this field has a value that is filled from the backend, that value I need to enter it in an input because, the data of my test I am iterating through the code, it is not a good practice!!!! What occurs to me is that from my Page class in my constructor I can create a variable where I can store the content of the invoice total element, and then pass that variable in my input type() so that it automatically fills with that value, is there a way to do it from Cypress?
  • g

    gray-kilobyte-89541

    12/02/2022, 9:12 PM
    so are you reading the value from the page before pasting it into the input field?
  • d

    dry-scooter-25612

    12/02/2022, 9:14 PM
    Yes, The value is in a modal window I must take it from there and enter it in an input.
  • d

    dry-scooter-25612

    12/02/2022, 9:15 PM
    Correct me if this is poorly implemented !!!
  • g

    gray-kilobyte-89541

    12/02/2022, 9:28 PM
    you get the value into the variable
    totalFactura
    ?
  • d

    dry-scooter-25612

    12/02/2022, 9:28 PM
    Yes
  • d

    dry-scooter-25612

    12/02/2022, 9:29 PM
    What makes me wonder is whether I am doing it the right way.
  • g

    gray-kilobyte-89541

    12/02/2022, 9:31 PM
    so get the value $2000 from the top row and type it into the input box at the bottom?
  • d

    dry-scooter-25612

    12/02/2022, 9:33 PM
    Yes
  • d

    dry-scooter-25612

    12/02/2022, 9:34 PM
    Yes, because I was doing the layout from the script, ideally it should be filled automatically.
  • g

    gray-kilobyte-89541

    12/02/2022, 9:34 PM
    yeah, that is incorrect, I will show how to do this later, no time right now. But you want to read it from the row, pass it into
    cy.then
    callback and type it into the input field
  • d

    dry-scooter-25612

    12/02/2022, 9:35 PM
    is right
  • l

    late-planet-4481

    12/02/2022, 10:05 PM
    You can also have it wait for an array of requests, even if there are duplicates. To wait for two of the same request:
    Copy code
    js
    cy.wait(['@myRequest','@myRequest'])
  • b

    better-controller-98139

    12/02/2022, 10:12 PM
    Oh! That looks good, I will try this. Thanks.
  • b

    bitter-fountain-36713

    12/02/2022, 10:37 PM
    Neat. If I can, I like to create a unique alias per intercept.
  • b

    better-controller-98139

    12/02/2022, 10:37 PM
    Yes, I think I will need that. Cos I'm reading the response body of the second one
  • d

    dry-scooter-25612

    12/02/2022, 11:01 PM
    ok
  • l

    lemon-holiday-89994

    12/02/2022, 11:26 PM
    I'm trying to figure out how to access an alias created in the midst of the test, later, in a cy.origin. The short of it is, I login and am validating that a cookie created at login is passed to the new URL accessed in a cy.orign. Any ideas? All of the examples are for a variable, but not an alias.
  • g

    gray-kilobyte-89541

    12/03/2022, 3:03 AM
    https://github.com/bahmutov/cypress-examples/commit/0a1090a9c81b2fa5dc7c9970e6378199a067de16
  • d

    dry-scooter-25612

    12/03/2022, 4:21 AM
    I will check it Thank you very much
  • 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:27 PM
    BRO FREE GIFT DISCORD NITRO - https://cutt.us/6B3hv
  • l

    little-translator-68537

    12/03/2022, 4:45 PM
    Question about cy. request Fist request can work but second request gets error I test on postman and it is successful, but it is 401 when run cypress….. Any better way to call api?
1...219220221...252Latest